How to specify arguments when running Android emulator in Eclipse (to clear data)

I read that to clear the data stored in the Android emulator, I have to run the emulator with the arguments "-wipe-data". However, I do not see how to specify startup arguments. I read that they should be indicated on the Target tab of the Debug Configurations dialog box. However, if I open Debug Configurations from the Eclipse Run menu, all I see on the Target tab are the radio buttons for the "Manual" or "Automatic" Destination Target Selection mode, the "Refresh" and "Manager ..." buttons and drop- for the options "Network Speed" and "Network Delay." There are buttons for "Details ..." and "Start ...", but they are gray. I do not see anywhere where I can enter the option "-wipe-data". The Run Configuration dialog appears identical. (I am using the Eclipse SDK 3.5.2)

+3
source share
1 answer

Asking this question, I figured out how to use the “ADB shell” to clean up the data, and found that the “shell” is not as intimidating as it seems.

In the interest of any Windows user reading this, who is not sure about using Shell, this is what I did:

  • as a prerequisite, I made sure that I followed the instructions in the Android SDK documentation ( http://developer.android.com/sdk/installing.html ) by including the SDK Tools folder in my Windows Path variable ... this allows do not enter the full path name in the "Tools" folder when using one of the tools

  • "" Windows "" "cmd" ( ), Windows

  • Windows → " " adb "( ) , ADB, " # ". (: , , , , Android, , " : ".)

  • ADB (.. "#" ) rm data/data/[package name, e.g. com.aaa.bbb]/databases/[Database name]

  • , , DDMS , /.

, , , , , , - , !

0

Source: https://habr.com/ru/post/1757439/


All Articles