I have accessed my sqlite file under data/data//databases/. Then I tried to open it in Android Studio. I selected SQL File as the file type, but Android Studio showed me a sequence of characters. Not a browser of sqlite file.
Is there any way to fix this? Can I open that sqlite database file under an application like 'DB Browser for SQLite', without saving that file under a folder and opening it from there?
No, you can't open sqlite files in Android Studio yet. Every day I do it this way: stetho ( http://facebook.github.io/stetho/ ) - powerful tool which allows browse tables and execute queries
or downloading DB file into my local file system (through adb or Device File Explorer) and open with SQLite Browser ( https://sqlitebrowser.org/ )
Please take a look at SQLite Administrator
. It is a free software, you can open a database file, create tables, launch queries, etc. I use it quite often when I need to take a closer look at a SQLite
db file.
You can try also this: https://www.quora.com/How-do-I-see-database-tables-in-Android-Studio
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.