Tuesday, 21 January 2014

How to look the values of android sqlite database.

In Today's tutorial i am going to explain how we can the see the values of the table that you have created in android my help of SQLiteOpenHelper. as we know that if we want to give some interactivity to an android application

we have to use database in android application. because we could be required to store the information in the application. but while implementing the database we faces many problems like usually we don't know values which our variable hold we try to access the value which is not present in the table.

So lets start .....

1. download the this jar file from here and put it into Eclipse/dropins/

2. Now restart your eclipse.

3 After restarting click on the DDMS located at the Top of the right side.


4. if there is no DDMS then go to the Window/Our perspective/ and the DDMS


5. now on the left hand side your emulator will be displayed select the application package in which you have created the table.

6. On the right hand side select the file explorer. then go to this path
(data/data/your.package.name/databases/select the .db extension file) 


7. now on the right hand side the database icon will gets blue.


8. Click on it ......... after click a Questoid SQLite Browser will appear at the bottom. Now click on the Browse data and select your table.



9. Now you can see the values of the table.


No comments:

Post a Comment