Last active
April 27, 2020 02:16
-
-
Save manojmohangit/a85c408eaaa6dbf506a437ebc895f7e1 to your computer and use it in GitHub Desktop.
Run Android Emulator without opening Android Studio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Runnning Android Emulator without opening Android Studio | |
:: Before Running this batch script, make sure ANDROID_HOME environment variable is configured | |
:: This script will run your first virtual device listed by -list-avds | |
ECHO OFF | |
TITLE Run Android Emulator | |
set path_to_emulator_dir=%ANDROID_HOME%\emulator\ | |
CD /D %path_to_emulator_dir% | |
emulator -list-avds > temp.txt | |
set /p device_name= < temp.txt | |
del temp.txt | |
emulator -avd %device_name% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment