I am installing and running an android application on my phone and for some testing purpose i want to see the databases of my application that is on my phone. now my question how to get those databases and the tables???? please reply thank you in advance.....
To view the contents of your local database you need to download a software called Sqlite Studio: http://sqlitestudio.one.pl/
1.) Download and install Sqlite Studio on your computer
2.) Connect your phone to your computer, make sure you turn on USB Debugging. USB Debugging can be activated from Settings -> Applications -> USB Debugging (or Settings -> Developer Options -> USB Debugging if you are using Ice cream sandwich).
3.) Open DDMS view in Eclipse and open the File Explorer tab in DDMS and then go to data -> data -> (name-of-your-application) -> databases. Now pull the data file from the databases folder onto your computer.
4.) Open Sqlite Studio and import the data file that you have just pulled from your android phone.
5.) View the contents of your database!
Hope this helped. Don't hesitate to clarify if you didn't understand!
The steps described by Vishwa is correct if we run on emulator. But for real devices we don't have access to data folder using DDMS. You need to have a phone with root access in order to browse the data folder on an Android phone. That means either you have a developer device (ADP1 or an ION from Google I/O) or you've found a way to 'root' your phone some other way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With