[android-developers] Re: Activities in Android 2.1

2010-03-03 Thread Bob Kerns
You mean, are there any 2.1 devices out there besides the Google Nexus One? If your app works OK with API 7, then declare it as targeting API 7 (while keeping the minSDKversion at 3), and it won't operate in compatibility mode. On Mar 3, 6:18 am, Neilz neilhorn...@googlemail.com wrote: Firstly,

Re: [android-developers] Re: Activities in Android 2.1

2010-03-03 Thread nayana urs
no am actually executing my code in emulator using eclipse there am getting error has no virtual device can u please let me know what should i set there with regards Nayana On Wed, Mar 3, 2010 at 8:41 AM, Bob Kerns r...@acm.org wrote: You mean, are there any 2.1 devices out there besides

[android-developers] Re: Activities in Android 2.1

2010-03-03 Thread Neilz
That isn't possible. The 'targetSdkVersion' and 'maxSdkVersion' statements were introduced in level 4. All my apps state minSdkVersion as 3 (as I have a 1.5 phone and so do lots of my users) so I cannot tell it to target a level 7 device. On Mar 3, 4:41 pm, Bob Kerns r...@acm.org wrote: If

[android-developers] Re: Activities in Android 2.1

2010-03-03 Thread Lance Nanek
You can use a level 4 or higher build target, so that you can use the new attributes, but still set minSdkVersion to 3 and run on older phones. You do have to be careful not to use new methods on the older phones, however. This is generally done via reflection, or checking values like

[android-developers] Re: Activities in Android 2.1

2010-03-03 Thread Bob Kerns
Yes, you can. But what I've just realized is you can't build it with the API 3 toolset. You have to indicate in the project properties that you're targeting SDK 4, and then not call any SDK 4 APIs. On Mar 3, 9:21 am, Neilz neilhorn...@googlemail.com wrote: That isn't possible. The