Simple batch commands directly to start your AVD

We all know that to start the AVD, the general approach is to first open the Android SDK and AVDmanager, and then select the choice you want to start the AVD start (nonsense)

So, is there an easy way to specify a key to start your avd at any position, the answer to the following:


First, open Notepad, enter the following statement:

 

OFF @echo
d:
cd \ Program Files \ Android \ Android-sdk \ Tools \
echo directory has been located ...
Emulator-avd my_avd
echo simulator has been started, Welcome!


--------------------------------------------------------------------------------------------------

 

 

 

After the completion of preservation as my_avd.bat, but any file name must be .bat format.

 

It's just a process for the following about how to modify the above statement is based on your sdk installation location,

second line,

The d: read your letter sdk where the
third line, read:

cd \ your tools to remove the file path after the drive letter folder

The fifth line, instead

emulator -avd you want to start avd name

Note the space!

 

Well, you are finished! Bat file to do whatever you put what, double-click to run well specified in the statement you want to start avd up! As shown below

 

 

Note that the command line window can not start after the close, minimize, otherwise for avd will close together!

 

 

 

================================================== END ================================================= =======
---------------------
author: Ls_man
source: CSDN
original: https: //blog.csdn.net/ls_man/article/ details / 6683797

Guess you like

Origin www.cnblogs.com/itgezhu/p/10958231.html