On Mar 10, 9:34 pm, Mark Murphy <[email protected]> wrote:
> ying lcs wrote:
> > By "dumping the content", I mean displaying what are the database
> > column, database row content.
>
> > Is that possible on the emulator? by opening a shell to it and run
> > some commands?
It's possible.
For example, after running "Gears Database Demo" and entering some
values into it opn the emulator and
# cd /data/data/com.android.browser/gears/code.google.com/http_80
# # sqlite3 'database-demo#database' <<!
> select * from Demo;
> !
Heeloooo|1236894032405
This is|1236894036105
Gears|1236894040152
>
> The sqlite3 command is built into the emulator, and you can use it and
> ".dump" to dump a database's contents. Please refer to the SQLite
> documentation for details on sqlite3:
>
> http://sqlite.org
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---