So you finally ran AndroVM. Now you want to use it to replace the clunky and resource hogging Android emulator with your Eclipse GUI.

To do so, make sure you know the IP address of your Android virtual machine. The default is 192.168.56.101. But if you want to change the default IP address, here is where you can find it.

  • In Oracle VM VirtualBox, go to File > Preferences > Network
  • Click on the label on the right that says Virtual Host-Only Ethernet Adapter
  • Click the 3rd icon that looks like a screw driver
  • Under the DHCP server tab, look at the Lower Address Bound

That is the IP address of the virtual machine. See photo below for a screenshot.

Now, once you have the virtual machine up and running, to link it to Eclipse so that it will use that as your test environment when running your apps, open MS-DOS prompt.

Go to where your Android sdk is installed. I installed mine in c:\program files\Android\android-sdk\platform-tools

Then type adb connect 192.168.56.101.

You will know if connection was successful by typing adb devices. Your IP address should be there.

Now in Eclipse, when you deploy your app, do the following:

  • Right click on the project name, choose Run As > Run Configurations
  • Go to Target tab and select Always prompt to pick device.
  • Click Apply button

Once you deploy your Android app, a popup window will show first giving you a list of Android related devices running (your virtual machine included).

Lucky that my friend found out about AndroVM just yesterday. When he told me about it and saw it in his PC how fast the virtual machine runs, I just had to download it, install it and use it as my test environment replacing the clunky, slow and resource intensive Android emulator.

AndroVM moving to a commercial product but do not fret because there will still be an open sourced version that does mostly what every operating system does.

It is blazing fast! Considering that my PC in the office is super damn slow, I had to resort to using an Android emulator running 2.3.1. If I used versions 3 until the latest, it will probably take me forever just to test my app.

Once I linked AndroVM as my test environment when deploying apps from Eclipse, it was simply a breeze.

They simply did a good job alright, running Android in a Virtual Machine. It helped me quite a lot because I could not do any testing on a tablet run device because I do not have one nor could I use an Android emulator on it because running Ice Cream Sandwich in a tablet emulator made my PC even slower.

To use AndroVM, you need to install Oracle’s Virtual Box then download the Android image file according to your choosing: phone or tablet.

By the way, since they are now a commercial product, AndroVM will now be called GenyMotion.

Make sure your phone has enabled USB Debugging. As to where it is, look in settings where there is a Developer Option section. You should be able to find it there.

Now, in Eclipse do the following:

Once you run the app, you will be prompted to choose where you want to run your apps and your phone should be part of the list available as well as the other emulator AVDS.

Related Posts Plugin for WordPress, Blogger...