ERROR: Application requires API version 2. Device API version is 1

by JP » Fri, 29 May 2009 10:33:39 GMT

Sponsored Links
 You're running Android 1.0 on the device, which is API version 1.
Unless you think your target audience is still on 1.0 for one reason
or another, I'd recommend you update your device to at least 1.1, or
better yet, straight to 1.5. They have version numbers 2 and 3
Now if you absolutely need to cover 1.0, you have to drop
minSdkVersion to 1.


Other Threads

1. How to create Multiple instances of an Activity From a Service?

I was wondering is it possible to create multiple instances of a
single Activity in Android?

I currently start my own inCall screen for a Voip Test by using the
following code: (Used in a Service)


             public void initInCallScreen(String pName, String phoneNumber,
int contactID, boolean
                        callDirection, int lineID){

                //starts in callScreen dialog
        final Intent myIntent = new Intent(context,
        myIntent.putExtra("NAME", pName);
        myIntent.putExtra("NUMBER", phoneNumber);
        myIntent.putExtra("ID", contactID);
        myIntent.putExtra("CALLTYPE", callDirection); //True =
Incoming, False = Outgoing
        myIntent.putExtra("LINEID", lineID);


This allows me to start the Activity fine.

However when I call it for a second it just returns to the Activity
already created rather than creating a new Activity and placing it on
the stack.

I would like to be able to create the activity multiple times so that
I have two or 3 Activities on the stack and the user can switch
between them, using Home, Back buttons etc...

Is this possible and if so what am I doing wrong?


2. Launch the WebBrowser with an intent (containing url) and then close it automatically?

I guess you can do whatever it is task killer apps do to kill a specific
task / process, but that's probably a massive hack.

Better option, I'd think, would be to control this by showing a WebView
instead of launching the browser, with which you can do whatever you want.

TreKing - Chicago transit tracking app for Android-powered devices



4. onclick open new view

5. Emulator keeps slowing down after a couple of deployments/Run as Android Application in Eclipse

6. Android Application design?

7. Official IMDB App!