× Please, log in to give us a feedback. Click here to login

You must be logged to download. Click here to login


MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation


MrBool is totally free and you can help us to help the Developers Community around the world

Yes, I'd like to help the MrBool and the Developers Community before download

No, I'd like to download without make the donation

Android Emulator: How to create and set up custom

In this artile we will understand about Android emulator and also learn how to create and set up it.

There are different types of the operating system present in the global mobile market but one thing we observe that Android(Mobile Operating System) takes a big roll to modern mobile technology, most of the mobiles are now build up with Android Operating System. Most of the mobile companies like Micromax, Samsung, LG and Sony are now using this Android software.

Basically Android is the Platform where we use so many application in our mobile device that can easily run and easily communicated with us. At the time of developing android we must use emulator that is basically look like virtual device that can run without having real device. So at first we should get idea about Android Emulator.

Definition of Android Emulator:

Now we will discuss about emulator. An emulator can be defined as a real Android device and allows us to run and test the application without having a real device system. The ADT (Android Development Tools) plugin includes an emulator to deploy and run an Android application.

As from the definition of Android we have to take a fresh idea about ADT (Android Development Tools). When we are launching the emulator then we must create an Android Virtual Device (AVD) that defines the system Figure and device settings used by the emulator. Different types of setting are present and also some settings are mentioned below.

  • Construct the version of the Android System.
  • Size of the SD card.
  • Set of the hardware options which are responsible for our system.
  • Emulator skin.
  • Screen resolution, etc

We can explain several AVD with dissimilar structures and can start them in parallel. At the first time when we are starting a new emulator it becomes very slow and the file system of the new AVD needs to get prepared. Now we are thinking that Android AVD (Android Virtual Device) and also GoogleAPI (Application Programming Interface)

AVD (Android Virtual Device) is used as an Android device or this device also acts as Google device. An AVD created for Android encloses examples from the Android Open Source Project.

About Android Emulator:

Android Emulator is the platform where we design and code our android programming with suitable and standard code.

At the time of the development and testing of our Android application we must install and run our application in the Android emulator. This Android Emulator is responsible for the development of our devices. We can introduce the emulator as a standalone submission from a command line otherwise we can run it from inside our Eclipse development environment. In either case we can specify the AVD (Android Virtual Device) confirmation to load and any startup decisions and we want to use at the time described in this document.

We can run our application on a single instance of the emulator or depending on needs we can start multiple emulator instances and run our submission in more than one emulated devices. We can use the emulator's built-in guidelines to simulate GSM phone calling or SMS between emulator instances and we can set up network redirection that allows emulators to send data to one another.

Android Emulator Setup Step by Step:

At the time of creation, we can use Virtual Box that permits us to install Android Operating System. For installation procedure we must follow some points that are given below.

At first download Virtual Box from the respective site and install Virtual Box version 4.2.16. We will be running our first Android emulator as a virtual machine. We can normally use VMWare, or Parallels, but VirtualBox is available free of charge that can work perfectly well for our purposes.

 Install virtual box

Figure 1: Install virtual box

Create folder and give suitable name:

Create folder

Figure 2: Create folder

Click on Browse -> Select the folder -> Select Path -> Click on next button.

Select path

Figure 3: Select path

Choose shortcut and Quick launch bar.

Select option for launch bar

Figure 4: Select option for launch bar

After that click on Proceed with Installation.

Proceed with final selection

Figure 5: Proceed with final selection

Click on Installation button. Then installation starts.

Installation started

Figure 6: Installation started

This is the installation progressing view.

Installation progress bar

Figure 7: Installation progress bar

This is Windows Security Alert. When it will generate then Click on Install button and click on check box.

showing security alert

Figure 8: showing security alert

At that time click on Storage media. Under this Storage media click on the icon to add a new CD/DVD device. When we prompted after that click on choose disk and select the android .iso [android-x86-4.3-20130725] Figure which we already deliver.

showing installation

Figure 9: showing installation

After the installation, we are starting the new virtual machine. When we prompted choose Install Android-X86 OS to hard disk.

Starting virtual box

Figure 10: Starting virtual box

It is encouraged to choose a partition, and then select Create or Modify partitions. At the position of cfdisk partition manager screen we choose New -> Primary -> and keep the default partition size. Toggle bootable and then proceed to write. After the partition is created then choose quit to exit cfdisk. Select the newly created partition and choose ext3 for the file system format. Must select yes and when we prompted to install the boot loader GRUB and yes to make the / system directory read-write.

After installation we should close the virtual machine and remove the android.iso CD/DVD from our Storage Settings before starting the virtual machine again.

Installation complete

Figure 11: Installation complete

When we start the new Android virtual machine (Oracle Virtual Box) then we notice that we cannot use our mouse inside the Android Operating System. After that choose a machine from the VirtualBox menu and then choose to disable Mouse Integration. We will now be able to use the mouse inside the Android Operating System. Take note of the host key used by our installation of VirtualBox. Without this host key we can not be able to get our mouse back out of the Android Operating System. We believe that the default host key used by VirtualBox on windows is the right Control key but this may be different in our installation. After this process we click inside the Android virtual machine to bring our mouse into that environment -> Click on the host key to get the mouse back out.

We can use Eclipse to test our application in the new Android emulator. We will need to know the IP (Internet Protocol) address of the virtual machine -> Click ALT+F1 to bring up the VirtualBox console and using the netcfg command we can easily show the IP (Internet Protocol) address assigned to it. After that to take note of the IP (Internet Protocol) address and go to the click option and click to ALT+F7 to get rid of the console.

Now we can connect the Android Debug Bridge (adb) with the new virtual machine Android emulator. Bring up command prompt windows that type Android Debug Bridge (adb) that connect We should use the IP address of our virtual machine that may be different. If our system is failed to find adb.exe, we can add it to our environment PATH. We can easily find out the adb.exe in our Android SDK installation directory.

Now we can set up a new Run Configuration through Eclipse to test our application in the new Android emulator. When setting up a new Run Configuration in Eclipse, click on the Target tab and select a Manual deployment target.

Showing manual deployment target

Figure 12: Showing manual deployment target

Once this is done completely then we choose to Run our application from Eclipse. We will be presented with a dialog from which we can select the Android device on which to run our application. Since our connected Android Debug Bridge (adb) pointed to our new Android virtual machine we should see the IP (Internet Protocol) address of the virtual machine as one of the available devices to test.

Concept of Custom Resolutions:

If we need to run the Android virtual machine with a custom resolution we are going to configure of our new emulator that is look like the Amazon Kindle Fire which has a DPI of 169 with a resolution of 1900x1600

When we right click on our new virtual machine also choose Show in Explorer. This point is used for the location of the .vbox configuration file for the new Virtual Machine.

Showing resolution

Figure 13: Showing resolution

Now we start our virtual machine and we see the GRUB boot loader screen and we have to choose the Debug Mode option. At the position on command prompt we follows, type the command vi /mnt/grub/menu.lst to edit the GRUB boot menu file.

Now we probably are familiar with the {vi} editor for this part. The duplicate one of the existing entries in the file to create a new one and then to change its title to something more meaningful and we find out that the changes of its DPI parameter to 169 that should add the parameter vga=ask to the end of the line.

Now we just Save and close the file and restart the virtual machine for proper configuration.

Showing kindle free

Figure 14: Showing kindle free

We will see now the new boot entry as one of the menu items on the GRUB loading screen.

Showing video mode

Figure 15: Showing video mode

At the time of end of the above operation we select the new boot entry and we give the option to hit ENTER to see the available resolutions.

 Showing resolution option

Figure 16: Showing resolution option


Android is a platform that take a vital role to generate most of the mobile operating system. Today we found that a lot of mobile companies are presently working with new technology and all are using this Android Operating System. The development of the android operating system is now dependent on Android Emulator. Emulator is taking the main role for development of all types of *.apk (Extension of Android Application) applications. I hope you have understood the concepts of emulator and will be able to use it in your development work. Keep reading in mrbool.

See also

Website: www.techalpine.com Have 16 years of experience as a technical architect and software consultant in enterprise application and product development. Have interest in new technology and innovation area along with technical...

What did you think of this post?
To have full access to this post (or download the associated files) you must have MrBool Credits.

  See the prices for this post in Mr.Bool Credits System below:

Individually – in this case the price for this post is US$ 0,00 (Buy it now)
in this case you will buy only this video by paying the full price with no discount.

Package of 10 credits - in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download few videos. In this plan you will receive a discount of 50% in each video. Subscribe for this package!

Package of 50 credits – in this case the price for this post is US$ 0,00
This subscription is ideal if you want to download several videos. In this plan you will receive a discount of 83% in each video. Subscribe for this package!

> More info about MrBool Credits
You must be logged to download.

Click here to login