How to access database inside an Android Emulator

Hey everybody,

So I was stuck trying to debug a problem with a missing table in an Android app.  I knew the table was in the original database, but I had to be sure it was in the actual database the emulator was using.  The easiest way to check this is as follows:

1.  Run the adb program.  Use “adb shell” to create a shell in which you can access the emulator.
2.  Switch to the directory where the database is located.  The “cd data/data/<application package name>/databases should do it.
3.   Execute sqlite3 <database name>
4.  Run whatever SQL commands you need to do in order to prove your sanity.

Big ups go out to Chris Kopec for his excellent tutorial located here.

gb

tumbleweed badge…yay!

I meant to update this a long time ago.  So I just started becoming moderately active on stackoverflow.com.  I must say, that it is a tremendous help with regards to iOS and Android mobile app development!  I asked a question there that received no answers and got a tumbleweed badge!  Yay!  Anyone else get one?

If you wanna check it out, try viewing one of my questions for starters:

sample stackoverflow.com question

gb