I have a ListActivity which uses a custom ArrayAdapter defining 2 view types, for example
parent 1
- child 11
- child 12
parent 2
- child 21
parent 3
- child 31
- child 32
I have successfully implemented the display functionality I want, but when I register the list view with registerForContextMenu( getListView()...
I am having some trouble in using a rawQuery to get a cursor for use in an ExpandableListView. I have an adapter class called ExpandableDataAdapter which extends SimpleCursorTreeAdapter. Here is the line I have to create an instance of the ExpandableDataAdapter:
ExpandableDataAdapter confDataAdapter = new ExpandableDataAdapter(
t...
How to show an xml in android horizontally inside the phone.
Actually i have no space to show my data.
Sp i want the phone to display it horizontally.
Please help.Thankyou.
...
I have written an application in android 1.5 to take a snapshot using SurfaceView. The image taken will have pink color fill at center. When we use a default camera application the photos are fine. I know there are some issues in android 1.5, also some hardware issues in some devices, however is there any workaround or settings to overco...
Hi Everybody,
I am using two ListView in a screen. I want to divide the height of each ListView but I want it to be screen independent. For this I need to know the Height of the screen. I am using xml to do this.
Can any one please help me to achieve this?
Thank You
Deepak
...
I have a service and its behavior must change when topmost Activity changes. Say, Activity A is active and then service starts some kind of processing. This processing must stop when Activity A is no longer visible: user pressed "Back", "Home" or did anything else that makes Activity A invisible. This Activity A must not be aware of the ...
hi sir
Hi I am using gallary layout my application is running when gallary moving from left ti right it is infinite that means elements are repeated again,Here is no problem,But when we move from right to left i am reached the first position after then no elements are coming.But i want to repeat elemts from this side also.Give me some s...
how adt knows that emulator is now fully loaded and i can transfer application now for installation
...
Spinner spinner = (Spinner) findViewById(R.id.sensor_list);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
this, R.array.sensor_list, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
final ...
what is the difference between setHeight and setTextSize?
...
Sorry I am new, stackoverflow does not
allow me to post image and links...
I try to use Official Android SDK (http://github.com/facebook/facebook-android-sdk/). I install the SDK and try to run the Example
At first, it fails at "build", it cannot find the Facebook SDK, so I try to follow the steps found in SDK page:
Add a dep...
I'm using eclipse, and I have two android projects which have different topics. And I want to connect these project. I mean, I want to run one android project from other.
I tried to reference one project to other, and then run but it didn't work.
Also I looked related questions and answers but it didn't work either.
Thanks
According ...
can we do gif animation in android web view.... i want to run some images step by step in continues way........
if this is possible then please tell how ???
...
Hi,
i need help to delete accounts which are displayed in “account and sync” from my app.
i want to delete google account, facebook account, corporate account, twitter account only from mobile.I'm using following code but google account(primary) didnt get deleted.whereas all other accounts like twitter, facebook got deleted.
andr...
Hi All
I ask again this question and add more info, I simply couldn't find a way to add comment to the guy that answered me (iandisme)
I am quite new to Android and Java I am looking for example of how to use class:
SingleLaunchActivityTestCase
Till now I am using class InstrumentationTestCase but the problem is that for each launche...
Just back from a very nice vacation in Iceland, and await the data roaming bill from my phone company. I hope for the best having limited my traffic as much as possible, but I want to know in advance. I used the very nice app NetCounter but it didn't measure roaming data traffic at all.
So I want to build my own app measuring just roami...
Hi Damian Kołakowski,
i am trying to send MMS using code sample from "http://stackoverflow.com/questions/2972845/i-want-send-image-through-using-mms-in-android/2973016#2973016" but when the last step "HttpUtils.httpConnection", throws an exception:java.lang.RuntimeException: This thread forbids HTTP requests,what's problem?Pls help me
...
Does anyone know how to provide your own LocationProvider and publish it to the system,
so other apps may fetch a reference to it from the LocationManager?
...
Hi
I am creating an App that gives sound notification to user when he gets msg from gtalk.
Thought there is no direct access to gtalk,
is there any way to get the latest notification title and data from notification status bar?
...
Hi,
How do I check to see how much MB or GB is left on the android device ? I am using JAVA and android SDK 2.0.1.
Is there any system service that would expose something like this ?
Thank you
...