Tuesday, January 18, 2011

how to wipe data when starting Android emulator?

Today, I wanted to wipe out all the test programs i have created in my android emulator. I googled it few times and found -wipe-data parameter in SDK documentation.


but how to use -wipe-data parameter ? it's easy, )but I could not find a way to do it using the Eclipse IDE)

Open command prompt,

android-sdk-windows\tools>emulator -avd -wipe-data
emulator -avd androidavd2 -wipe-data

this should work!

1 comment:

  1. go to Run -> Run Configurations... When the Run Configurations window comes up, choose your Android application if necessary. Then go to the Target tab. Scroll down and you'll see a check box that says, "Wipe User Data."