I have an app that works as intended when run on API 8, but when I run it on any older API version, it crashes with:
10-28 12:10:50.755: ERROR/AndroidRuntime(1864): Uncaught handler: thread main exiting due to uncaught exception
10-28 12:10:50.765: ERROR/AndroidRuntime(1864): java.lang.RuntimeException: Unable to start activity Componen...
hi!
I am new to android.I have a list view in one activity. Displaying data in it... I want to use another activity as a tab-bar for 1st activity which allow user to switch to other activity... Is there any way so that 2 different views can be displayed in 1 activity. And then how can i start a new activity inside this activity. Like whe...
Can I add a group of ArrayList into a single ArrayList?
The ArrayList groups are of different sizes. Then How can I recognize each ArrayList?
...
In my proj there r four tab and in all the four tab i m same style list view
i m thinking that its not good to write same Class four time just pass some url to one activity so in each tab it show diffren data , but how to implment this i m confusing .... pls can u help me and my english is not good so ignore any error
...
Hi
I am facing a problem
I want my application to pick up resources from the framework. Here is my code snippet of an xml.
For this to be achieved following changes were made in attrs.xml
and themes.xml at the framework level
@android:drawable/btn_minus_ss
The drawable btn_minus_ss.png is added to drawable-hdpi folder at ...
Hello,
I want to start an Activity, when clicking on Button (Buttons are generated in GridView). I have tried everything, but it fails when clicking the button in emulator... :(
Here is the code of class implementing OnClickListener
public class CalendarMonthClickListener extends Activity implements OnClickListener {
private final Con...
I create one TextField.When i click the TextField i wish to open the menu .how to do this ?
...
Hi,
I am writing an Android App which used TabHost. I created 3 Tabs. Now my doubt is when I click a tab it should come forward and other tabs should be visible partially in such a way that the width of middleTab should increase evenly in left and right directions, so that the other tabs in left and right should slip out of window parti...
Hi friends i am doing one app which requires to use ProximityIntent for showing proximity alerts i was surfing from one day but i did'nt find any sample app which shows it. i found some links but they are complex please help to find out some useful links
the links i have seen which is complex and not clear is
http://blog.brianbuike...
i need to read organization name from phone contacts in 2.1 i can read name and phone number using following code
Cursor cur = User.cr.query(ContactsContract.Contacts.CONTENT_URI, null,
null, null, null);
if (cur.getCount() > 0) {
while (cur.moveToNext()) {
// I...
Hi stackoverflow,
I am just starting out programming on Android.
What is the most computationally expensive Java constructs to avoid when programming an Android App?
Of cause every algorithm costs instructions, but what about use of Method calls, Object references, Interfaces, Collections and such? What do I need to avoid, and what...
So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i want to do:
view show/hide element
I can show and hide, but im not following how can i animate the sliding correctly....:(
Heres my xml:
...
I am in search of any android mobile which has Gyroscope built in it. Samsung Galaxy S do not have a gyroscope while its Galaxy Tab specification shows it would.
So any other known android device which has Gyroscope sensor and is available in market ? Iphone 4 already came out with Gyroscope, so what for android manufacturer's waiting f...
When my app loads the following error comes up on some devices. It refers to none of my source files at all! How do I go about fixing this one?
java.lang.NullPointerException
at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42)
at com.google.android.maps.MapView.onDraw(MapView.java:494)
at android.view.View.draw(View.j...
Hello,
In the method "OnCreate" of my actvity, I'm displaying a little progress dialog while loading data. It's done every time the "OnCreate" method is called so even when the screen orientation change.$
In the nominal case, there is no problem even if the user change the screen orientation.
But, if the user opens another dialog (use...
Configuring a TextView with autolink="all", does not recognize Facebook url shortened URLs of the format http://fb.me/
All other shortened url formats are recognized including tiny url and bit.ly. Has anyone come across this before? I've tried this on Android 2.0, 2.1 and 2.2 all with the same results.
...
I would like to be able to send an actual SMS message from a shell using just the command line and not relying on any apk to do so. I am interested in sending this message between phones, not from the emulator to the phone. For example, by running the command:
service call phone 2 s16 "1234567890"
I can place a call from phone to ph...
I am starting an android camera app for taking pictures. When I ctrl-shift-O to get the import for the Camera class there are two choices: android.graphics.camera and android.hardware.camera. Which one should I use and what are the main differences?
...
My MediaRecorder is setup to record audio from the mic. This works ... except that the first .65 seconds is completely dead air - its as if the first .65 second the record button was pressed but the mic had not turned on yet.
I need to determine if:
Something is wrong with my code
This is just a flaw in the way MediaRecorder works
...
I launch my app from Eclipse on an emulator and Eclipse creates a new blank file called main.out.xml then refuses to launch because this new file is blank. What is causing this? What do I do about it?
...