adb install gives Failure [-12] when deploying an application to phone

by Xavier Ducrohet » Tue, 02 Feb 2010 09:11:25 GMT

Sponsored Links
 the error code are defined in the class.
See here: ;a=blob;f=core/java/android/content/pm/;h=53a966d3db126eb6bce3b7878a4876db27ab4402;hb=eclair#l367

-12 seems to be INSTALL_FAILED_OLDER_SDK meaning that your app
requires a more recent build that your device is running.

This is confirmed by the info you provided, as your device runs
"Firware Version: 1.0", but you compiled your app for 1.1 and 1.5

1.0 is quite obsolete. I would flash something newer on the phone to
test your app. You can see the distribution of the different version
of android at 

Regarding signed application, all applications must be signed to run
on Android. See more information at 



Other Threads

1. Exception on database query - table is empty / orderBy is not null

I am getting following exception during a database query wenn the
table is empty and orderBy is not null (either modified ASC or
modified DESC).
Is something is wrong hier?
logcat output
   android.database.sqlite.SQLiteException: no such column:
modified: ,
   while compiling: SELECT _id, name FROM client ORDER BY modified ASC

this code causes exception:

        SQLiteDatabase db = mOpenHelper.getReadableDatabase();
        Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, orderBy);

this code works:
        SQLiteDatabase db = mOpenHelper.getWritableDatabase();
        Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, null);


2. Discovering Views

It is my understanding that tasks like selecting a contact or an image
on the phone is best implemented by asking the system to provide a
view to perform the action. I tried the example in the documentation:

                 new Intent(Intent.ACTION_PICK,
                 new Uri("content://contacts")),  //actually using

but I get the following exception:

08-31 17:42:59.752: ERROR/AndroidRuntime(190):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.PICK data=content://contacts }

I am calling the startActivityForResult method from the onClick()
method of a button listener.

I am assuming that the emulator has some sort of view installed for
contacts (since it is available from the main view). So, specifically,
what is the correct URI to select a contact? In general, is there a
list someplace of expected views and how can I query  the system for
available views.



3. LaTex on ANDROID

4. Where to start with this...

5. Is MapView without roads possible?

6. push functionality for Android?

7. Setting android compiler arguments on eclipse plugin