Home > Tutorials > Load SQLite database on emulator

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:

Load Shell

Load Shell

5. Now I just need to load my database to use:

# sqlite3 user_db
SQLite3 Shell Prompt

SQLite3 Shell Prompt

Hope you enjoy it!

Pete Houston

Categories: Tutorials Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: