To create the batch file to open the emulator via command-line, follow the steps given below:
Step-1: Create a blank batch file.
Step-1: Create a blank batch file.
Step-2: Copy this format:
Step-3: Paste it in the batch file.
Step-4: Edit the instruction-text inside square-bracket accordingly.
Step-5: Verify the modified text, if it looks similar to the one given below:
$ [drive-name]:
$ cd [path-to-android-sdk]\android-sdk-windows\tools
$ emulator -avd [android-emulator-name]
Step-3: Paste it in the batch file.
Step-4: Edit the instruction-text inside square-bracket accordingly.
Step-5: Verify the modified text, if it looks similar to the one given below:
$ d:
$ cd D:\Programs\android-sdk_r15-windows\android-sdk-windows\tools
$ emulator -avd AndroidSimulator
Step-6: Save the file.
Now the batch file is ready to be used. Just double-click on the batch-file to run the emulator.
Comments
Post a Comment