开发者

Database on Android [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜