How to remove the database from the emulator?

I have database time in my application running on an emulator and you want to delete it. Is there any SQL query that I can run through the shell or another method?

+5
source share
4 answers

Go to DDMS, then go to the file explorer, then open the data → ---> data → then your package ---> then database and here you have your database and you can delete it by clicking the minus “-” sign top right.

+23
source

yes, the database can be accessed through the device bridge from the shell ...

here is a link to an explanation on android.com

http://developer.android.com/guide/developing/tools/adb.html#sqlite

0

adb shell, , /data/data/your _appname/
, . .
, sqlite- SQL-.

0

, ,

>>./emulator -avd <AVDNAME> -wipe-clean

emulator android-sdk-YOUROS\tools.

, avd,

>>./android list avds

android android-sdk-YOUROS\tools.

"factory ", .

0
source

All Articles