When you are working on an Android application that stores data in a SQLite database.There arise many questions like
- where does this database file get stored on the filesystem ?
- How can we access the database?
I will give solution to all these problems. I created the SQLite database from my previous post
about Using SQLite in ANDROID
You can see the sqlite database in eclipse by opening File Explorer .
Then navigate to “/data/data/package_name/databases”
But here we cannot see the tables and table data.
For viewing the table details Eclipse has a plugin. You can download the jar from below.
Download the jar from the sqlite manager from here.
Now put the jar in the folder
and restart the eclipse and now you can see the sqlitemanager plugin on the top right of the File Explorer window.
It will be enabled when you click on the DB file in the File Explorer Window.
By clicking the icon [after selecting the db file], sqliteManager Window comes and here we can see the table structure.
and then the Browse Data tab shows the whole data
Hopefully i think you cleared all doubts about SqliteManager Plugin
Note : If you’re using a plug-in for which no Update Site is available, you can use the “dropins” folder in your Eclipse installation directory.
Plug-ins are typically distributed as .jar files. To add a plug-in to your Eclipse installation, put the plug-in .jar file into the Eclipse “dropins” folder and restart Eclipse. Eclipse should detect the new plug-in and install it for you.
Note : if your SQLiteManager Plugin is not enabled, then check your sqlite db file extension. It should be a “.db” extension.
Please check my another ANDROID BLOG FOR MORE ANDROID CODES AND SAMPLES.
Check out more similar posts on SQLite in Android below.