Monday 4 November 2013

Speed up your Android's emulator

Hello Guys !!! Hope  you are doing well.
Today I am going to discuss about emulator. As you know that Android Emulator is  a virtual test device for your App development. An Android app running in the emulator should behave nearly identically on a target device; you should also be able to run some level of performance tests on the Android emulator.
     But practically  an Android emulator tends to be so slow on most development machines -- any sort of performance testing is almost impossible. The latency of Android's emulator has continued to increase with each iteration of the new android versions and starting at about 4.0 (Ice Cream Sandwich), The out-of-the-box Android emulator experience has become somewhat painful in the last 18 months.
Luckily, the open nature of Android has made it easy for third parties to step in, pick up the ball, and run with it. This leads into my discussion of Genymotion, a commercial offshoot of the open source project AndroVM. Genymotion is a very fast, Android emulator that works for Windows, Mac, and Linux.  Best of all (at least for now), it's free.
Genymotion integrates directly into Eclipse, has a slew of pre-configured popular phone images to choose from, and supports the majority of critical sensor emulation. The only area where I find Genymotion lacking is that I haven't figured out a way to throttle the network connection to emulate 3G, even after reading the documentation.
  Here I am putting some screen shot of Genymotion  VM device. Look on that images. I am also going to help you out how to install and use this Genymotion  VM device for your app development testing.




Now I am going for setup this fast Android VM with some basic question.
1. What is Genymotion ?
Genymotion is the fastest Android emulator for app testing and presentation. Genymotion is the evolution of AndroVM open source project, already trusted by 300 000 developers.

2. Features of Genymotion:

  1. Fastest Android emulator right now.
  2. Do your simultanous automatic tests on unlimited virtual appliances .
  3. Directly launch Genymotion from your Eclipse and Android Studio platforms.
  4. It has Open GL acceleration ,multiscreen and full screen display.

3. Steps to Setup Genymotion Android Emulator in Windows OS:

  1. Go to http://www.genymotion.com/ and sign up.
  2. After logging in download genymotion for Windows 32/64 bits from the following link.
  3. https://cloud.genymotion.com/page/launchpad/download/
  4. Download and install virtualbox for linux from the following link.
  5. https://www.virtualbox.org/wiki/Downloads
  6. Now run the the downloaded genymotion-1.1.0.exe and install the Genymotion on your PC.
  7. Then launch Genymotion and login with your Username and Password.
  8. Select Add to create a new virtual device, then select a device from the list and click Add. See the 2nd Image for more detail. 
  9. Then select next and the Virtual image starts downloading.
  10. When the download is completed select next from the window.
  11. Then you will be asked to enter a name for the downloaded Genymotion virtual device. Enter a name and select create and the click finish.
  12. Now the virtual device will be listed in “Your virtual devices” in the home screen.
  13.  Then select play to start your virtual device.For the first time it asks to configure sdk path for using ADB , select the sdk path and you will be booted to Android home screen.

4. Configure Genymotion with Eclipse IDE:
  1. Open Eclipse and select Help->Install New Software.
  2. Enter the URL http://plugins.genymotion.com/eclipse and hit Enter
  3. Genymobile will be shown, select it and click next.
  4. Genymotion Eclipse Plugin will be downloaded and installed.
  5. Now restart Eclipse IDE the plugin will be active.
  6. Now you can run your apps developed in eclipse in Genymotion Android Emulator.
     Happy Codings !!!
Any questions and Suggestion please comment here.
Thanks

1 comment:

  1. Very useful information that you have shared and it is very useful to me.Thanks for sharing the information with us.

    mobile app development company in chennai

    ReplyDelete

Build a Custom Kernel Module for Android

Hi Guys!!!Hope you are doing well !!!. Today I will describe how you can write a custom kernel module(Hello world) for Android and load it a...