eclair

Future versions of Android and test devices - possible problems

Hello, guys, In the last couple of days, there were some speculations, circulating through the blogosphere, that the future versions of the Android OS, created from the branches Donut and Eclair, won't be compatible with the T-Mobile G1 and Android Dev Phone 1, because of insufficient OS flash storage on those devices. While that's not...

How to read contacts on Android 2.0

Hi. I'm working on Android 2.0 and am trying to receive a list of all contacts. Since android.provider.Contacts.People is deprecated, I have to use android.provider.ContactsContract, But I can't find a proper example of how to use it (ex: retrieve a list of all contacts on the phonebook). Anyone knows how to implement it? Thanks! ...

Accelerometer stops delivering samples when the screen is off on Droid/Nexus One even with a WakeLock

I have some code that extends a service and records onSensorChanged(SensorEvent event) accelerometer sensor readings on Android. I would like to be able to record these sensor readings even when the device is off (I'm careful with battery life and it's made obvious when it's running). While the screen is on the logging works fine on a 2....

Android 2.1 gallery not backward compatible with Cupcake version, now what?

I don't know why, but in Eclair, the default (non-fancy) gallery app changed its begaviour from the Cupcake version, and it broke one of my commercial applications :-( Firstly, when long-pressing a gallery and choosing "Diashow", it does not publish an Intent to be picked up by any application that implements the Intent filter anymore. ...

Display a native activity with a pick-list of Android phone contacts only on Eclair and above?

I want to show the user a flattened pick list of all their contacts phone numbers and it must work from versions 1.6 up. I have read the related questions on SO and the Android documentation for Eclair (http://developer.android.com/resources/articles/contacts.html#legacy). The problem is, even splitting my code into a factory class and ...

Android Live Wallpaper touch events

Hi, I've just started with Android, I'm making a simple Live wallpaper. I'm testing it on a 2.1 emulator. The trouble is while it works in the preview screen before you choose "Set Wallpaper" the touch events don't appear to register on the screen once you've selected it as a wallpaper. Do I need to state anything in the manifest about ...

Android 2.0 How to get display name and number in a contact group

I get a list of contacts in a given group id by id Cursor cur = ctx.managedQuery(ContactsContract.Data.CONTENT_URI, new String[] { GroupMembership.GROUP_ROW_ID, GroupMembership.CONTACT_ID }, GroupMembership.GROUP_ROW_ID + "=" + String.valueOf(id), null, null); if (cur.moveToFirst()) { ...

My custom ringtone previews but is silent during incoming call?

I have an MP3 file that I can play outside of Android and stored on the sdcard. I did the call to MediaScannerConnection.scanFile(mContext, ... so it has been discovered. In Froyo, the ringtone shows up in the **Sound -> Phone ringtone** list. In Eclair it does not list (I expected it in the User add ringtones ...