I have an Android application that uses the Android database to create tables and store data. I\'m currently running this app in the emulator in Eclipse. I have 2 questions:
The database is stored in the following location on the emulator (assuming your app has the package com.example.app
and a database named db-name.db
):
/data/data/com.example.app/db-name.db
You can access it from the command line as follows:
cmd> adb -e shell
cmd> sqlite3 /data/data/com.example.app/databases/db-name.db
sqlite> select * from table_name;
sqlite> 1|Example Item 1|1|
sqlite> 2|Example Item 2|2|
sqlite>