android

Running application on emulator running older SDK

I have a project that builds against Android v2.1 . I can run it fine on a phone running 1.5 but when I try to launch it with an emulator running 1.5, the emulator doesn't show up on the list of available AVDs. I have the <uses-sdk android:minSdkVersion="3"/> tag in my manifest but it doesn't make a difference. Any ideas? thanks ...

ACTION_SENDTO for sending an email

I am experiecing "This action is not currrently supported" error condition when I do the following? I am using 2.1. Anybody knows what I am doing wrong here? public void onClick(View v) { Intent intent = new Intent(Intent.ACTION_SENDTO); Uri uri = Uri.parse("mailto:[email protected]"); intent.setData(uri); intent.putExtra("subje...

Should a sync provider be an Android library or application ?

Regarding Android >= 2.0.1. This speaks for Application type of project: The provided sample code makes it an application. Easy testing in dev tools. This speaks for Library type of project: From another application wanting to trigger a sync, I would like to include it as a library dependency. What other benefits/drawbacks can y...

Android: ListActivity with ListView start new intent and this intent don't have parent

Hello I've a ListActivity with a ListView, onItemClick i start an Intent, Oncreate of this Intent i make a getParent but it's null. if i do this.isChild() it's false. mPostList.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { Intent IntentDiscuti...

[Android] MapView ConcurrentModificationException

Hello everyone, As the title suggest i have (sometimes) a concurrentmodificationexception while trying to create a route between two locations ... Here is my code (and in case you're wondering MyOverlay does not try to access the other Overlays in the map) private class fillRouteTask extends AsyncTask<Void, GeoPoint, Void> { /**...

Robotium: searchText

Hi all, I have a strange situation I can't explain myself. The following code works well: solo.sleep(1000); assertTrue(solo.searchText("Banking")); but the following code fails: assertTrue(solo.waitForText("Banking", 1, 1000)); Can someone can explain me this? Kind regards, Alban. ...

android use smack api with facebook chat

hi im trying to use the smack api to send/receive messages in facebook chat. im using: host: chat.facebook.com port: 5222 service: chat.facebook.com username: my facebook [email protected] password: my facebook password logcat says im getting a "503 service unavailable error" but i cant work out why. my username/password work...

Determining what # is being dialed on Android

I know that with the telephony manager listen, you can listen for 3 different states. Iknow that CALL_STATE_OFFHOOK indicates that there is at least one call that is dialing, active, etc. My question is- with the telephony manager, is there a way to determine what number the phone is off hook with? I thought getLine1Number() might ret...

Android: how Linux interacts with host devices?

How the Linux drivers interact with the host devices through the Android Emulator? I mean for instance how a virtual sound device driver, compiled for ARM and running inside of the Emulator communicates with the actual speaker on the computer. I heard that you need to use a special kernel image when running on top of the Emulator, so I ...

Android Log data

I'am using log to store all the transfer. How can I check the logged data? Log.i("login", "recevied " + getResponse(response.getEntity())); ...

Open the options menu programatically

I like to call a menu already created an activity without using the button on the smartphone. How can I do it? ...

Any way to debug javascript on Android devices?

Are there any means of debugging JS code, or at least get errors, on Android devices? ...

Android intent to open user's preferred browser

Hello everbody, I've been trying to find out how to create an intent that will open the user's preferred browser without specifying the URL. I know how to open it by giving a specific URL like this: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.google.com")); contex...

how can android app auth Orkut

I have downloaded Opensocial-java-client example which contain an android example: friendlist which load friendlist from goolge account. I want to modify it to communicate with Orkut. I have the following question: I cant find where can I get consumer key&& secret key for Orkut. I only know https://www.google.com/gadgets/directory/...

No Activity found to handle Intent { act=android.accounts.AccountAuthenticator } even though I have one

I'm trying to have my app display my login activity when a user selects add account in accounts&sync or wants to use the app and isn't logged in yet. I've followed the example SampleSyncAdapter fairly closely, but can't get it to work. in my auth service: public IBinder onBind(Intent intent) { IBinder ret = null; if (...

android HTML template as resource

is there any way to have an html file (i.e. an html template) be a resource in android? I'd like to reference it in a similar way that i store strings in the res/values/strings.xml. However, when i do this, it appears the HTML is not getting rendered correctly when i use myTextView.setText(Html.fromHtml(MessageFormat ...

How to change styles for Gallery widget on Android?

Hi Guys, Is there a way to change styles for Gallery? For example, borders, animation speed. Maybe there is list of predefined themes? Thanks for any help. ...

Retrieve a reference to CountDownTimer after Closed activuty

My activity has a simple menuItem that start a counter... the counter is stored in a field of the activity the problem is with the "back button" after closing the activity (back button), the timer (as in my intention) continues, and restarting the activity behave correctly by reshowing the timer... but I lost the reference to the counte...

Can't figure out the source of this RuntimeException when trying to create a simple list

Please help me with this code - I am basically going through a book and trying to create the examples myself but I can't get past this error. I've checked my LogCat and it says "java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'". I know there is probably some small detail I'm omitting...

run j2me app on android ???

Hi is it possible to run java SE or Java ME app on android ??? ...