Situation: The general situation is directly uninstalled, or use ADB uninstall COM.XXX.XXX (package name)
Then today on different devices to adapt, a high version of the direct long press and then dragged into the garbage bin unloading. However, in systems with a system version of 2.3,
You have to go to Settings---> Apps---> (corresponding program) click Uninstall. I really feel very troublesome, so I want to use the command to uninstall.
Use the ADB command to view the currently connected device, command: ADB devices
You can see that there are 4 devices to begin with, CFFXXXX is the real machine, and the other is the device ID of the simulator.
You can know that the device ID corresponding to the simulator is identified using the IP address plus port number.
How do you know the simulator for 192.168.56.102:5555? You can open DDMS directly to view:
Then look directly at the simulator above name:
Now uninstall the corresponding program: adb-s 192.168.56.101:5555 Uninstall com.xxx.xxx
Which uses the-s 192.168.56.101:5555 to specify the appropriate specific device
Summary: First use ADB devices to view the device,
Install on one device: adb install xxx.apk
Uninstall on one device: adb uninstall com.xxx.xxx
Install on multiple devices: Adb-s xxxxxx (device number) Install xxx.apk
Uninstall on multiple devices: Adb-s xxxxxx (device number) Uninstall Com.xxx.xxx
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android uses the ADB command to uninstall programs when there are multiple emulator devices and real machine devices