Skip to content

Instantly share code, notes, and snippets.

@manojmohangit
Last active April 27, 2020 02:16
Show Gist options
  • Save manojmohangit/a85c408eaaa6dbf506a437ebc895f7e1 to your computer and use it in GitHub Desktop.
Save manojmohangit/a85c408eaaa6dbf506a437ebc895f7e1 to your computer and use it in GitHub Desktop.
Run Android Emulator without opening Android Studio
:: 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