android

Android application Internal timer

How do I keep track of the runtime of an application. ...

Starting window in android

Hi all, I want to know what is the actual use of starting window in android? What does the functions addStartingWindow and removeStartingWindow does? Is it a kind of fake window that will be shown to the user till the application dispalys the proper window? Is it created for every application? What will happen if i dont do a addStar...

How to access context in non activity classes

Hi, I am writing my first Android application and have some problems with handing around context objects. A lot of methods/constructors seem to require the current context (activity) which causes me some problems in my action listeners. Instead of having all my listeners and handlers as anonymous classes in the activity class I have c...

How to retrieve image from intent uri in android i.e assigned using content values

Hi friends I am using android inbuilt camera to take picture and then attaching the same picture to email, here in the below code i am using Uri imageUri = null; to take picture but in onActivityResult(int requestCode, int resultCode, Intent data) method i need to retrieve that image how to do it, plz help me.. , public cl...

Android AOSP build error 3 : to package android.text

Hello, trying to Build AOSP (froyo) i got following errors (unknown): error 3: Added class GetCharsDraw to package android.text (unknown): error 4: Added public method android.text.SpannableStringBuilder.getCharsDraw (unknown): error 4: Added public method android.text.SpannableStringInternal.getCharsDraw (unknown): error 6: Added in...

When to use the tab sizes?

Hello I have a TabHost activity, and I have to use the tabs position. The problem is that I don't know when the layout is initialized. I've tried to use the onPostCreate, onResume and onStart methods, but the tab's sizes are 0, every time. Thanks in advance! ...

Android decoding json response

the request processing code while($op=db_fetch_object($result)) { $data[$i++]=array($op->name,$op->age,$op->dept); } echo json_encode($data); $data contains [["Aadidev","23","division1"],["Ragman","35","division3"],["Sahlaad","27","division1"],["Maraadhak","21","division2"],["Arya","48","division1"],["Shank","25","d...

When using ArrayAdaptor in Android, The data isn't shown.

Hi, I'm writing an Android App that loads in data from an RSS Feed and lists the available items, and their description. There are 2 instances in which I use ArrayAdaptor. One works and one does not. The first one lists available feeds (right now the feed URLs are hard coded), and that one works. MainActivity.java public void onCreate...

Intercept back button from soft keyboard

I have the activity with several input fields. When activity started soft keyboard is showed. When back button pressed soft keyboard closes and to close activity need to press back button one more time. So the question: is it possible intercept back button to close soft keyboard and finish activity in one press of back button without c...

can't view map in emulator

Hello, i can't seem to view map in the android emulator, it keeps showing me a screen dialog to choose an action to complete the viewing, but when i choose anyone, nothing happens. Here is the screen dialog: ...

Android: Clicking on ExpandableList to transfer contact number to edit text (for contact finder)

Hey, what i want to do is to do a SMS sender & receiver. All that is left is a contact finder. Basically what i can do right now (for the contact finder) : - Able to display the contacts - Able to toast text after clicking on the child But what i can't do is to transfer the contact number to an edit text , since i can't seem to find th...

keypad is not showing in landscape mode in android emulator

HI all, i m developing an android app. in portrait mode i don't have any problem. but when i switch to landscape mode soft keypad is not showing on screen even clicking on text filed also. i have two separate layout folders for portrait and landscape mode. where is the problem? can anybody help me. thanks in advance. ...

How to get internal/external available space in Android Application?

Hello all, I'm writing an android program to check available space of internal phone memory or external sd card. But i don't know how to do this. Any one can help me how to do it in Android? ...

how to access xml data in TextView in Android

I would like to access xml data which contains Questions ans there 4 objective type answers and I want to access them in 5 textViews which access each question and there related answer on every next button click. its like an online examination. ...

Android Market to list my app on just one particular device or just on tablets. How?

Hi, I need to make an app available for just one particular device model (or alternatively for just tablets) on the Android Market. Is that possible? Thanks for any hints. ...

SlidingDrawer is not coming on top of viewflipper.(Dying situation please help)

Hi, i have a problem with sliding drawer.look at the layout i added. 1) i added viewflipper which contains two customized views. 2) next i added two arrows in realtaive layout 3) now i added sliding drawer my problem is sliding drawer is not coming full screen .its coming only upto the space which is lefer after relative layout . <V...

Get the android:tabs view

Hello Is there a way of getting the android:tabs view of the current TabActivity? I tried using the findViewById(int) method but it's no use. Best Regards! ...

Updating Android SDK Version.

Friend's, I want to know how to change currently using android sdk to another,(i.e) i'm using android-sdk_r04-windows in my eclipse,suppose if i need to change it for android-sdk_r07-windows,how can i proceed,whether simply delete android-sdk_r04-windows from drive and to download and paste android-sdk_r07-windows,is't enough or...

Android: Manage contacts with lookup key

Following up on this question: Android: Manage contacts with lookup key (see below) I have the same problem. However, it shows with Android 2.1 Update 1, But is OK with Android 2.2. It seems that the lookup key changes with contact's name change with Android 2.1, but does not change with Android 2.2. Did anybody else experience this...

Context in android

i am a newbie.Please explain what all things are passed through a context.Like when constructing an object for the following class.. public class myclass{ public myclass (Context context){....} } ...