Search code examples
androiddatabasesqliteandroid-sqlitemobile-application

How can I view my Android application Database ? [Android]


How can I get the database of my application running on my phone. I use Android Studio and my database is in assets>MyDataBase.db Is there a way to update this file ?

I have my own sqlite database, I insert data then I want to get the file back with the new data.

I don't use the emulator and my database was created by SQLite Browser.

[EDIT]

People said it was a duplicate of this question. But I want to do the same in code line not in command.


Solution

  • If you want to edit file in assets folder of your app in Runtime - this is not possible. you should copy this DB to internal/external storage and edit it after that.