Load SQLite database on emulator
Sometimes you might need to check out your database inside emulator with or w/o coding.
1. Launch emulator.
2. Open Command Prompt and access location of ‘adb.exe‘
3. Type as following
[C:\Program Files\Android\android-sdk\platform-tools]adb -e shell #
4. ADB Shell is prompted. Now just located your sqlite database. Eg: I have my package ‘pete.android.study‘, then my database will be put at:
5. Now I just need to load my database to use:
# sqlite3 user_db
Hope you enjoy it!