开发者

How to use Android OS VirtualBox as device in Eclipse

I found this tutorial on how to run Android OS here: http://www.javacodegeeks.com/2010/06/install-androi开发者_如何学编程d-os-on-pc-with.html

Has anyone tried to use the set-up as a replacement for the emulator? If so, how did you do it?


I haven't used the guide you link to, but instead downloaded an eeepc image from the Android x86 Project. The steps I followed are:

  • Install Android to a virtual PC - I used a 64bit virtual machine, enabled all the hardware virtualisation, and used the PCnet-FAST III virtual network adapter in bridged mode - see image 1
  • Disable host mouse pointer integration - this will allow Android to display it's own mouse pointer so you know where you're clicking.
  • You need to work out what IP address the VM has, so that you can connect with adb connect <YOUR_VIRTUALBOX_IP>. I do this by logging into my router and identifying the IP of the device that shares the port with my laptop, since that's the Android VM using bridged networking. See image 2.

You are supposed to be able to use VBoxManage commands to identify the IP of the guest, but I've never gotten those working, so the router method is the only one I have that works.

Performance is pretty good - much quicker than running hte ARM emulator, though of course, you can only run Android versions that have been compiled for x86.

How to use Android OS VirtualBox as device in Eclipse

How to use Android OS VirtualBox as device in Eclipse


You are supposed to be able to use VBoxManage commands to identify the IP of the guest, but I've never gotten those working, so the router method is the only one I have that works.

Hit Alt + F1. when the root@android prompt comes up, type netcfg and press enter. That will show you the IP address. Hit Alt + F7 to get back to the GUI.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜