API to Install Certificate

by jimi » Thu, 21 Oct 2010 15:45:51 GMT

Sponsored Links
 Hi All,
  Is there any API to install CA Certificates(.cer or .p12 files) from
File System/SD card.
  I am able to do it manually but i would like to automate the same
via a Widget that will Browse SD card for certificates and Install
them on selection.

Thanks and Regards,
Jimi<Shashi Kiran G M>


Other Threads

1. SQLiteDatabase, rawQuery(), and "attempt to acquire a reference on a close SQLiteClosable"

I am beginning the long, slow process of updating my books to Android 1.5.

In one of my code samples, I have the following method:

static Cursor getAll(SQLiteDatabase db, String orderBy) {
        return(db.rawQuery("SELECT * FROM restaurants "+orderBy, null));

When I run it, sporadically, I get this:

05-01 14:45:05.849: ERROR/AndroidRuntime(1145):
java.lang.IllegalStateException: attempt to acquire a reference on a
close SQLiteClosable
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at
05-01 14:45:05.849: ERROR/AndroidRuntime(1145):     at

This makes no sense to me. The database is definitely open. The
SQLiteClosable is the SQLiteQuery created by SQLiteQueryDriver, and I
see no evidence that there is an object pool or something going on here
that might explain how a "new" SQLiteClosable is already closed. The
fact that it is sporadic (meaning the same UI operations sometimes
trigger the exception, but not always) suggests some sort of pool, race
condition, or something...but I'm not sure where.

I've looked at the source code via Google Code Search, but Google Code
Search is out of sync with 1.5, so the code does not completely line up.
For example, SQLiteProgram's line 56 in Code Search calls
acquireReference() on the database, but my stack trace shows it calling
acquireReference() on the SQLiteProgram instance itself, and
SQLiteDatabase does not appear to have an acquireReference() method.

Does this ring any bells for anyone?

Thanks in advance!

Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.html


2. Android 1.5: Problems developing on a device

If you device doesn't appear in ddms, you might want to restart abd
('adb kill-server' followed by 'adb start-server')


Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.


3. Test Post

4. 1.5 SDK export unsigned application - no files inside

5. OutOfMemoryError from BitmapFactory

6. pretty great idea

7. Anyone been asked by dev to change their rating for their app on market?