Android Development: Adding Genymotion to Eclipse




In this post I will walk you through adding Genymotion - a third party emulator to the Eclipse IDE.

What exactly is Genymotion?
           Genymotion is an open source virtual machine for android development, in other words it is a third-party emulator. As of my observation it is faster than the actual emulator provided by android sdk. And, installing the applications on this emulator is just a drag and drop and few clicks, where as the other emulators need adb command prompt way of installation.

So lets get started!! It is simple to install and configure Genymotion:

Step 1: Download and install Genymotion from here. You will have to register and verify your email address in order to download a copy. Once downloaded, run through the installation. Believe me it is not that complicated. 

Step 2: After the installation when the Genymotion is launched you can add a device from the list of available android virtual devices. Select any device and finish the installation process.




Step 3: Once the device is selected follow through the finish and your new device will be ready. Now once you are back to the home screen click on your new device and click start.



Step 3: Once installed, we have to add the Genymotion plugin for Eclipse. For this we have to run Eclipse as an Administrator. Close Eclipse and open it as administrator. And click "OK" in the popup.



Step 4: Once Eclipse is opened as an Administrator,  click on "Help" from the top toolbar and select "Install New Software". 




Step 5: From the window, click on Add, this pops out a small dialog box, Enter Name as "Genymotion" (doesn't matter whatever name you give) and enter Location as "http://plugins.genymotion.com/eclipse" and click OK.



Step 6: Once the Url is added you will see "Genymobile" plugin, select everything from here and just click next through finish.



Step 7: Once the plugin is installed, click on "Run" from the toolbar and then click on "Run Configurations".



Step 8: Now on the window that pops out, select your project from the left pane. And then click on "Target" tab and select "Always prompt to pick device" and then click apply



Step 6: Now!! when you run any application from Eclipse, a dialog pops up to choose a device. You will be able to see your newly created Genymotion emulator under "Choose a running Android device". Select your device and click "OK". This will install your application on your Genymotion emulator.


0 comments: