0

I am very new to android programming.

I deployed my search app which has a database to the emulator.

Then I make some changes to the data in the code in Eclipse, and run the project as Android Application.

The data shown in the emulator is still the old data.

How can I see the new data without restarting the emulator and checking Wipe User Data?
It takes very long to start the emulator.

3
  • Database need not to be manually refreshed . it will reflect the change automatically Dec 14, 2013 at 9:56
  • You can either delete the database from your code itself and recrete it , Thats simple Dec 14, 2013 at 9:57
  • Use Genymotion (cloud.genymotion.com/page/customer/login/?next=) or the older version AndroVM (androvm.org/blog/download) . Much faster than the SDK's emulator, but it's x86. So you won't get THAT close emulating a real phone, but it's much faster to test changes. And Genymotion got accelerometer and everything.
    – Apache
    Dec 14, 2013 at 10:00

2 Answers 2

1

Easy way to remove previous database in android.

Go to android Emulator setting--> Application --> your Application (click on it) >> clear data. 

Thanks

0

To see data follow this link: Where does Android emulator store SQLite database?

Just remove it using adb:

C:\> adb -e shell rm /data/data/com.example.package/databases/*.db

You can also choose the "Wipe user data" option when launching the emulator AVD, or you can uninstall the application to wipe all data for just that one app:

C:\> adb -e uninstall com.example.package

Finally, you can also just clear user data for a given application without uninstalling it, by going to Settings > Applications > Manage Applications... Select your application, then click the "Clear Data" button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.