Android Emulator
References
Setup
One time setup. In the examples, "Pixel4_api30_android11_x64" is the name of the emulator being created. In the examples, android api level 30 is used, which is android 11 (see references above).
All commands are in Powershell syntax.
Install tools, platform, system image
PowerShell | |
---|---|
Create emulator
PowerShell | |
---|---|
config.ini
useful settings
Add the following settings to the emulator's configuration file, located at:
<$env:USERPROFILE>\.android\avd\<emulator name>\config.ini
So, in the example:
C:\Users\username\.android\avd\Pixel4_api30_android11_x64.avd\config.ini
nhw.lcd.width = 720
andnhw.lcd.height = 1280
set the resolution to 720pnhw.lcd.density = 240
sets DPI to an acceptable levelnhw.keyboard = yes
is needed for full functioning of the computer keyboard (eg. copy-pasting)
Run the emulator
Just run this command every time you have to start the emulator.