Pages

Thursday, October 18, 2012

Android: How to start Emulator from command-line?

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-2: Copy this format:

$ [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.

No comments:

Post a Comment