Database on Android [duplicate]
Possible Duplicate:
开发者_Go百科Where does Android emulator store SQLite database?
I am doing database application in android.i need to know where the data base is store,whether in Emulator or in our application.
Thanks in advance...
The databases are stored as SQLite files in /data/data/PACKAGE/databases/DATABASEFILE where:
- PACKAGE is the package declared in the AndroidManifest.xml (tag "manifest", attribute "package")
- DATABASEFILE is the name passed when you call the SQLiteOpenHelper constructor as explained here: http://developer.android.com/guide/topics/data/data-storage.html#db
You can see (copy from/to filesystem) the database file in the emulator selecting DDMS perspective, in the File Explorer tab.
精彩评论