Creating Android Emulator
During mobile app development, we need to see our app in action. How our app is performing actions and how it looks like in mobile devices. For that purpose, we create emulator on our local system. Emulator looks like real mobile device. You will feel like real smart phone or tablet on your location environment.
In this tutorial, we will configure android emulator from scratch, so let’s get started.
Step 1 : Open Android Virtual Device Manager (AVD)
We can configure our emulator from AVD Manager in android studio. AVD helps you to configure emulator on your location environment. Click on the below icon to start AVD as shown.
Step 2 : Create new AVD
Click on create Virtual Device button to create new emulator as shown in the screen below.
Step 3 : Select the device
Select the device as per your choice. I recommend you to choose Nexus 5 which provides good look and feel. Look at the screen shot.
Step 4 : Select and download API
In order for emulator to work properly. You need to install it’s supporting libraries or system image. You need to select version as per SDK version. Since, we are using SDK version 4 and API level 19. You need to select and download the required system image for that as shown in below screen shot.
Select the KitKat API Level 19 x86 Android 4.4 (with Google APIs) for download.
After download is completed, you should be able to select the system image as shown below. Select the KitKat version 19 and click next.
Step 5 : Configure emulator
Next step is to configure emulator settings. If you don’t know what to configure just leave it as it is. Default configuration will be enough to run the emulator.
Now click finish to create emulator. You will see your emulator on the list in AVD manager.
Step 6 : Run your project on emulator
It’s time to run your first app on android emulator to see it in action. But before that, you need to configure your app to run on emulator as shown below. Edit your run configuration.
Now Select target device as emulator.
After that select the emulator which you configured earlier. Select and finish.
Now our app is ready to run. Then hit run.
Now you should be able to see your app in android emulator.