Accessing the database of one application from another application

前端 未结 4 1432
情歌与酒
情歌与酒 2021-01-02 20:33

I\'ve built an application and now I want to copy the database of that running application using my new backup application. I create my database path by doing DB_PATH

相关标签:
4条回答
  • 2021-01-02 20:43

    You can use the same database only if you created the running application database in custom content provider.

    You cannot directly access the database from running application.

    But if you create your running application database in Custom Content Provider then with the help of authorities you can directly access the database.

    In this case you don't even need to copy that database.

    Refer this link for custom content provider.

    0 讨论(0)
  • 2021-01-02 20:44
    No
    

    you can't access the database of other application unless the application give you the interface through the ContentProvider.

    0 讨论(0)
  • 2021-01-02 20:44

    Read Android Security. Any data stored by an application will be assigned that application's user ID, and not normally accessible to other packages

    0 讨论(0)
  • 2021-01-02 20:47

    Using DDMS you can browse your SQLite DataBase so read the tutorial of DDMS from this link http://www.brighthub.com/mobile/google-android/articles/25023.aspx http://www.edumobile.org/android/category/android-beginner-tutorials/

    0 讨论(0)
提交回复
热议问题