mardi 19 mai 2015

How to list all table names contained in telephony.db in android programmatically

I have tried to get the table names from android mobile programmatically using the following code: Cursor tableCursor = getContentResolver().query(Uri.parse("content://telephony/sqlite_master"),new String[]{"name"}, "type='table'", null,null);

but I am getting tableCursor as null.So can anyone help me out of this

android.provider.telephony.db is the default database in android mobile.

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire