1

I'm developing an android application which contains 2 tables. I saw the table under DDMS tab. These two table contains some important data for my application(For example: username and password for 2000 records). But When I install my application on device, I couldn't able to see the table.

Also, In device when I'm running my application it creates a new table. This table contains no records. So when I check for username and password, it return no rows, affect my application.

So I need to copy the two tables into the device at the time of installing apk file. Is there any ways to do this?

Linga
  • 10,379
  • 10
  • 52
  • 104

1 Answers1

-2

You can fetching your database tables records using

SQLiteDatabase myDB = this.openOrCreateDatabase("test.sqlite",
          SQLiteDatabase.OPEN_READWRITE, null);
Cursor c = myDB.rawQuery("select a, b from abc", null); 
Ashish Jani
  • 295
  • 3
  • 14