Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

inspecting android sqlite and IntelliJ

I'm starting out with a small app using programmatically created sqlite db. Is there a way to inspect that db when the app is running on emulator?

like image 842
vector Avatar asked Sep 05 '12 02:09

vector


People also ask

How do I view SQLite Database in IntelliJ?

Open the Database tool window by selecting View | Tool Windows | Database from the main menu. on the toolbar and select Android SQLite from the drop-down menu.

Can IntelliJ run Android?

IntelliJ IDEA is one of the popular IDE that is used for developing android applications.


2 Answers

You can download the database file from the device to your PC and then use any SQLite browser / tool to inspect the database.

Either via the adb commandline tool from the Android SDK tools

adb pull /data/data/your.app.package.here/databases/yourdatabasefile.db

or via the device browser (File Explorer) in Eclipse in the DDMS perpective (maybe that exists in IntelliJ too, Idk)

or the new Android SDK tools provide a neat standalone version of that DDMS perspective & the file explorer via the new Device Monitor tool (android-sdk/tools/monitor.bat)

like image 115
zapl Avatar answered Sep 25 '22 21:09

zapl


This is now possible with IntelliJ IDEA 14:

https://www.jetbrains.com/idea/help/accessing-android-sqlite-databases-from-intellij-idea.html

like image 34
John Mark Scarborough Avatar answered Sep 24 '22 21:09

John Mark Scarborough