For issues relating to developing with the android SDK, version 2.0 (Eclair).
Questions tagged [android-2.0-eclair]
35 questions
96
votes
9 answers
How to read contacts on Android 2.0
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…

appme up
- 961
- 1
- 7
- 3
25
votes
5 answers
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…

William
- 251
- 1
- 3
- 4
21
votes
1 answer
Best Android 2.0 development book?
I'm looking for a single book source for Android 2.0 development.
While I may be ok with a general Android development book, a book which covers 2.0 features is ideal.
What is the best Android 2.0 book out there, or upcoming?

pearcewg
- 9,545
- 21
- 79
- 125
7
votes
3 answers
How can I force a GridView to use the whole screen (regardless of display size)?
I've got the following layout file, which has a GridView and an ImageView behind that as the background.

Jimmy
- 16,123
- 39
- 133
- 213
3
votes
3 answers
application requires feature(s) not available on your device
I have an Android application on Android Market, but some users are complaining about an error shown when the installation starts, just after the download:
One of them sent me a video of this error showing up, and I could see that this error is not…

Flávio Faria
- 6,575
- 3
- 39
- 59
3
votes
3 answers
Problem running applications on Android 2.0 compiled on Android SDK 2.3
There seems to be a breaking change in SDK 2.3 that causes applications compiled on it to fail to work on Android 2.0 devices. (Although Android 2.0 is officially gone, I'm unfortunately stuck with a bunch of Motorola Milestones that I got from…

Steve Pomeroy
- 10,071
- 6
- 34
- 37
3
votes
2 answers
Android - Get All Contacts from All Sources
I have been attempting to make an Android application, built against 2.0, that requires getting all of the user's contacts and displaying them in a formatted way.
I have been able to get a list using a Cursor and the ContactsContract.Contacts class.…
user153498
2
votes
3 answers
pull to refresh in android
Possible Duplicate:
How to implement Android Pull-to-Refresh
I have implemented pull to refresh in my app which works fine in 2.2, but in 2.0 it doesn't.
I couldn't find the method 'smoothScrollBy()' in 2.0.
Can anyone please give me the solution…

RATTLESNAKE
- 3,218
- 2
- 21
- 24
2
votes
1 answer
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 ->…

mobibob
- 8,670
- 20
- 82
- 131
2
votes
2 answers
Android Live Wallpaper touch events
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…

Garcon
- 2,463
- 3
- 23
- 24
2
votes
2 answers
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…

Schermvlieger
- 206
- 2
- 4
2
votes
1 answer
Regex negative lookahead in Android 2.1
The regular expression, specifically for negative lookahead patterns, does not seem to work properly in Android 2.1 code.
See example below:
private String parseString(String regex, String raw) {
StringBuffer sb = new StringBuffer();
Matcher…

bruno.braga
- 1,001
- 12
- 21
1
vote
1 answer
API8 to 7 compatibility
What is the best way to make my app originally designed for API8 to be compatible with 7? I've noticed that AlertDialog features seem to cause trouble, for instance showDialog() doesn't work.

ASBJØRN
- 11
- 1
1
vote
0 answers
Android 2.0: How do I receive a list of groups a known contact belongs to?
I've written my application to find the contact, if one exists, for an incoming phone call.
I want to take action if that contact belongs to one or more flagged groups.
However I cannot find a link between the contact and group membership content…

bob bob
- 11
- 1
1
vote
1 answer
How to properly kill an Android activity, that isn't a background process
There seems to be a lot of controversy about how to stop applications in Android, so I'll explain what I'm trying to do and why in hopes that I can receive some guidance on how to properly implement the functionality I'm looking for.
I got tired of…

Justin
- 11
- 2