In android how can I read database which is in DDMS? I want to see the data of my database which is stored in DDMS can I do this?
You need to read SQLite records.
In order to read your SQLite records you must run the project in your emulator and NOT in Android Device. If you want to read your SQL records in the actual Android table the process is more complicated. Solutions on line suggest that the only way to achieve is to “root” the device. This is a no-no process if you do not know what you are doing.
If you are using Eclipse and wanting to read the contents of the sqlite directly from the DDMS without pulling it out from the databases folder, you can use questoid sqlite browser
You can download it from here also.
DDMS--> file explorer-->data--> data--> your package name-->databases
Your database should be inside databases folder
once you select your database, you will see two icons on the upper tab wherein you can push or pull the database
The best option is to use Motodev Studio. It allows you to connect to the database on the emulator/devices and do sql queries and so on.
Otherwise you can also download the database to your developer machine and then connect to it and query it.
Or you can log in to the device/emulator with
adb shell
and use sqlite3 to connect and execute queries on the command line.
There is a much simpler an more elegant way using this tool:
http://www.coderzheaven.com/2011/04/18/sqlitemanager-plugin-for-eclipse/
In the file explorer you can navigate to the database file and then browse through it, no need to deal with sql queries if you only want to check some values in you database.
Unfortunately there doesn't seem to be any more active development for it.