To use the android command, first add the path of the tools file in your androidsdk Development Kit to the PATH variable of the system so that you can use the android command
- Open the start running window and Enter cmd to enter the black dos form.
- Android list // display all android platforms in the system and all AVD (simulators)
- Android list target // display all android platforms in the system
- Android list AVD // display all avd in the system (simulator)
- Android create AVD-name focuser-Target 9 // create AVD (simulator) create a simulator named focuser android2.3 Platform
- Android move AVD-name focuser-Rename www.focuser.org
// Rename the AVD name and rename the avd of the focuser as www.focuser.org
- Android Delete AVD--name www.focuser.org
// Delete the AVD named www.focuser.org
Simulator
- Android Create Project-package org. focuser // package name *
-Name focus // project name
-Activity mainactivity // activity name *
-Target 10 // Android version *
-Path D: // Android/focuser // path for storing the project *
9. Android update project-Target 9 // Android platform version
-Path D: // Android/focuser.org // path for storing the project
-Name focuser // project name
10. emulator-AVD focuser-sdcard ~ /Focuser. IMG (-skin 1280 × 800) // start the simulator
11. ADB devices // display all running Simulators
12. ADB install mp3player.apk // install the APK Application
13. ADB install-r mp3player.apk // reinstall the APK Application
14. ADB uninstall org. focuser. mp3player // uninstall the application
15. ADB help // view the help information of the ADB command
16. Android help // view the help information of the android command
17. ADB root // obtain administrator privileges
18. Abd shell // enter the shell mode of the device or Simulator
19. ADB push <local path> <remote path> // send files from the computer to the mobile device
20. ADB push <remote path> <local path> // copy the file from the mobile device to the Local Computer
These are terminal commands that I often use, but I often forget to specially post these basic commands to check them when I forget them! Today, I went to dinner and made a small step every day. Come on!
Original article published in my personal independent blog --- "Focus
"Reprint please indicate the original link: http://www.focuser.org /? P = 212