To be honestly, the emulator which comes with Android Studio sucks! So, the only option left is to either connect a physical device to test out your apps (which I assume no one among us would like to do) or to use third party android emulators like androVM/virtualbox etc.
Now, the thing is because of devilish market forces and 'policies' charted our by MBA guys, androVM, now rechristened as genymotion stopped releasing their awesome android images which could easily be downloaded and imported into any hypervizor like VMWare/VirtualBox. Instead, they have started making users register to their website and making them download images only though their genymotion application.
But, some angelic creature has mirrored the old-er images (as new as 4.1.1). You can access those images at this page. The description about the download variants can be read here.
Now that being said, download the suitable images on .ova format and import the image in VirtualBox and voila! you have an efficient android simulator running on your machine.
Now, you can either use Host only or Bridged Adaptor so that host and guest can communicate with each other. Get the IP of android device from 'Settings -> About Phone -> Status -> IP Address' (You might need to reboot the android emulator for changes in network devices to take place). Settings and capabilities will vary depending upon which networking you chose among the two.
Now, to connect android studio and virtualized android, open up the terminal in android studio (bottom pane) and issue a command,
This will link up android studio and the emulated android and you can them run your application (to be tested) in the usual manner.
Now, the thing is because of devilish market forces and 'policies' charted our by MBA guys, androVM, now rechristened as genymotion stopped releasing their awesome android images which could easily be downloaded and imported into any hypervizor like VMWare/VirtualBox. Instead, they have started making users register to their website and making them download images only though their genymotion application.
But, some angelic creature has mirrored the old-er images (as new as 4.1.1). You can access those images at this page. The description about the download variants can be read here.
Now that being said, download the suitable images on .ova format and import the image in VirtualBox and voila! you have an efficient android simulator running on your machine.
Now, you can either use Host only or Bridged Adaptor so that host and guest can communicate with each other. Get the IP of android device from 'Settings -> About Phone -> Status -> IP Address' (You might need to reboot the android emulator for changes in network devices to take place). Settings and capabilities will vary depending upon which networking you chose among the two.
Now, to connect android studio and virtualized android, open up the terminal in android studio (bottom pane) and issue a command,
'$location_of_sdk/platform-tools/adb connect $android_ip'
This will link up android studio and the emulated android and you can them run your application (to be tested) in the usual manner.
Comments
Post a Comment