I have android running on virtualbox, to use it as a second cell phone with an bluetooth usb stick, to connect it with a real device.
I have 2 Questions:
Is it possible to get access with DDMS in eclipse like the real device to the virtual box version?
How can i install in .apk package on the virtual box android?
I hope somoeone can help me.
Thanks!
All you need to do is to install your chosen version of Android on a normal virtual machine or VM using VirtualBox. Simply follow the steps below and you'll have Android up and running in no time.
Android Emulator allows you to run emulations of Android devices on Windows, macOS or Linux machines. The Android Emulator runs the Android operating system in a virtual machine called an Android Virtual Device (AVD). The AVD contains the full Android software stack, and it runs as if it were on a physical device.
netcfg
write down the IP address and press Alt+F7.adb connect <virtual_machine_ip>
in terminal on your host machine.You should then see the device in ADT and be able to run your applications on it.
Edit: This will work if you are set up to use bridged or host-only adapters: for NAT you must set up port forwarding first:
VBoxManage modifyvm <name_of_your_android_vm> --natpf1 adb,tcp,*,5555,*,5555
adb connect localhost:5555
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With