VinceCarter wrote:
> how can i use exactly this adb shell

http://code.google.com/android/reference/adb.html

> i have tried to run CMD under Windows and i have typed adb shell in
> the android folder. After than i have input the command ".tables", but
> there were no tables found.

adb shell gives you a Linux shell. From that shell, you can execute 
sqlite3 to give you a SQLite shell, where .tables might work. 
Personally, I prefer to just adb pull the database to my workstation so 
I can use friendlier tools to examine the database.

> Can you explain me, how must i use this shell and how can i delete the
> existing databases with him.

The database can be found at:

/data/data/your.app.package/databases/your-db-name.db

where your.app.package is the Java package for your application (e.g., 
com.commonsware.android) and your-db-name is the name of your database, 
as supplied to createDatabase().

The command in a Linux shell to delete a file is rm.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to