Many blogs mention writing command lines to do different stuffs...but I don't know where to write these command lines! For example, I want to clean my emulator with emulator -wipe-data
but where should I put this?
Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.
Just delete/uninstall other apps from your emulator. Inside the emulator go to the Settings app, then Applications -> Manage Applications -- you can delete them from there.
-wipe-data Delete user data and copy data from the initial data file. This option clears the data for the virtual device and returns it to the same state as when it was first defined. All installed apps and settings are removed. For example: $ emulator @Nexus_5X_API_23 -wipe-data.
Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]
Open command prompt & goto
android-sdk-windows\tools
Then for the following command:
emulator -avd -wipe-data
use something like:
emulator -avd myandroidavd -wipe-data
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With