0

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

5
  • This may Help You, Visit here stackoverflow.com/questions/82875/… Commented May 19, 2015 at 10:09
  • @maven:Thank you for your response, but I have seen these example they are given in queries, but i want them programmatically in android. Commented May 20, 2015 at 5:35
  • once you have this Result, you can Loop over it and get all these Tables. Commented May 20, 2015 at 5:44
  • @HP's 411: I did not understand your answer.My question is if I develop a program in android and install in my mobile i have to see all the table names that are present in my mobile's telephony.db Commented May 22, 2015 at 5:07
  • see this > davanum.wordpress.com/2007/12/11/… Commented May 22, 2015 at 8:00

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.