When you develop an Android applications where would you test it, You cannot test it every time on your mobile or tablet. “Emulator” is the answer. Emulator is a software that act as your Android device. Every Android developer must have the emulator set up on the Eclipse.
Another point is you cannot have all the android devices with all different configurations but don’t worry In Emulator you can test your applications on all the configurations which you don’t own.
Steps to follow:
In Eclipse, go to Windows->Android Virtual Device Manager .
Click on the “Create” in Android Virtual Device Manager Window.
Once you click on create, the Create new Android Virtual Device (AVD) window.
Now fill the following fields :
- AVD Name : TH-AVD
- Device : Nexus 4 (4.7″ , 768 x 1280: xhdpi) , you select from the various options from the drop down based on for which device you want to create emulator.
- Target : Select the Target API, I have selected ‘Android 4.4.2 — API Level 19′.
- CPU/ABI: Intel Atom (x86)
- Skin : Skin with dynamic hardware controls
- Front Camera : None
- Back Camera : None
- RAM : 1907
- Internal Storage : 200
Now Click OK
You should create few AVDs with different API levels and hardware configurations so that you can test your application on different versions of the Android OS.
Now you can locate your newly added AVD “TH-AVD”.
Select the TH-AVD from the list and click Start.
Once start is clicked , You will get a window with Launch Options.
select the “Scale display to real size”, so that emulator will be set according to your screen size. you can select other options wisely based on your computer screen.
The Android Emulator will be launched. Initially the it will take time, because it will boot the Android OS.
After some time the Android Emulator will be ready for completely and it will be ready for your application..
First the emulator will appear with locked screen like a real android device.
Click on the lock and swipe to the right, the home screen will appear.
Happy Androiding 🙂