I am developing an app on Android.
When I'm debugging, I use a virtual machine with android 4.0.
I have looked in all folders from the system (virtual machine), but can not find where the database (. Db) is stored.
When I debug the code, I noticed that the eclipse passes in the class constructor of SQLiteOpenHelper (super (context, DATA_BASE, null, VERSION_DB);
), ie, the database exists.
Asked
Active
Viewed 392 times
0

Alex Cohn
- 56,089
- 9
- 113
- 307
1 Answers
0
please go on this steps
run your app on emulator
click the "window" button on the title bar
- select the open perspective on it's list view
- select the DDMS option[this will return to a new page]
- On that new window select your emulator (on the left side of your window it will show your currently working emulator's from that select the one that you run the app)
- Then it will display all the files on your system
- From that go to "data" file
- Again in that data file there is another file call on "data" click it
- then it display your application name's by it's package name
- select the package that you run early
- On that file there is a folder call "Databases" if and only if your database was created when you running the application.
- on that there is a file in your data base name. that is your db file
- if you run on emulator you can view it, but if you run on phone you haven't permission for view it.
- follow this link if you want to view your db How to view my SQ-LITE DB on ANDROID

ISURU
- 923
- 13
- 24