HowTo: Get an Android app's database from the emulator

Most apps need a database for storing their data onto the device in a structured form. Android's natively supported DB is SQLite. Now of course if you develop an app you'll probably have the need for inspecting the stored data during development. Since the DB sits on the emulator/real device you have to first pull it to your workstation, however.

There are two possibilities for doing so:
  • Use the adb command from your shell:
    For instance

    adb pull /data/data/com.yourcompany.yourpackage/databases/yourdbname.db /Users/Juri/Desktop/
    This will store it on your desktop.

  • Alternatively you can use Eclipse like:




Your ad here?