Run Android on virtual machine for development - android

Currently I am using Android emulator for development, but it is very slow. I am looking for some android port that can run on real CPU.
For example I installed this product http://www.android-x86.org/documents/installhowto on VMware, and it seems to work much faster, but I have no idea how to setup network connection here.
The question is if some one is using alternative android setup for development, instead of emulator? If so, a link to configure instructions would be great.

Why not just plug in an Android powered phone? Just set USB debugging on and it acts exactly like the emulator.
I have run the Android-x86 project on my n450 powered netbook and it was unusable. The port is by no means ready for daily use. Basically, if you think the emulator is slow, you will cry when you find out how slow Android-x86 is. My advice would be to throw a few bucks at a newer/faster computer if you think the emulator is slow. I develop on a 3 year old Core2Duo 2.4Ghz notebook and it runs just fine. I've even run the x86 port on the same notebook and it's horribly slow (not to mention not touchscreen). Also, if the network doesn't work 'out of the box', then you'll have to hack the source code and implement your own driver as Android-x86 is meant to work on Asus Eee PCs.
So either upgrade, or plug in your android powered phone and use that.
But for now, I wouldn't bother trying to use the x86 port for development. It's just not ready yet.

Here you can find a tutorial for installing and connecting to the eclipse x86 version.

if you use eclipse, before running your program, run the virtual device from "Android sdk and virtual device manager". surely you will be excited from fast running.
dont forget to increase your device ram in hardware setting section.

When booted, use Alt+F1 to go to terminal.
Enter: netcfg eth0 dhcp
Your network should start and get the Ip, you can check if you run netcfg

Related

Can I connect my physical laptop's usb port with cloud machine? I want to test android apps using android studio

I am using android studio on cloud, and I want to run android emulator but vt-x is disabled by the provider. So now is there any way to run emulator? And can I connect my laptop's usb port with that cloud machine?
Yes, but none of them is easy.
"on cloud" means that it runs on a virtual machine far, far away. Its host machine, by the provider, surely has vt-x, because all recent strong hardware has. But currently it is impossible to emulate a virtual vt-x for a virtual machine, at least for productive environments. This is why you have no access to vt-x on the virtual machine.
Your options:
There are various ways to transfer usb over network. Linux can do that quite easily, but you need Linux both on your cloud VM and on your laptop. There are also various software solutions for windows. The problem with these is the delay. Some USB protocols have strict timing requirements and if your network is slow, the virtual machine might interpret it as faulty hardware.
The Android emulator is a modified Qemu. Android VMs can run even in an unmodified qemu. It will be slow, and hard to finetune, afaik aosp does not even run in it, but lineageos yes (a link: https://android-x86.org). As you have likely no kvm (linux kernel virtualization accelerator), but it would work.
In your case I would try (1), if it does not work, then you need an essentially different solution. For example, you can script the Android Studio to deploy the compiled apk into your phone with network-based adb.

How can I run a MEmu android emulator in a VMware Windows 10 Virtual Machine?

I have a MacBook Pro running bootcamp with windows 7 on it, and I am trying to run a MEmu android emulator on a VMware windows 10 VM (all inside my bootcamp partition). The reason for this is id like to have a sandbox keeping my data private and separate from my bootcamp partition while using the emulator.
MEmu downloads, and installs fine but then gets stuck at 99% infinitely while setting up the emulator. I have been searching the web for quite some time now looking for anything that might give me some insight on how to do this or why this isn't possible and have found nothing.
I have tried installing VMware tools to try and match the graphics requirements, and I have edited my VMs settings so that its configured to run with VT-x/AMD-V enabled. Is there any other way I can make this work?
Wont work because memu is a virtual machine. Memu actually uses a hacked version of virtualbox.

Debugging a "remote" Android device with Xamarin?

So I am needing to do some debugging with Xamarin Android. This wouldn't be such a problem if the emulator wasn't so slow. So, I looked at setting up the x86 emulator, but because I'm running Xamarin within VMWare (host machine is Linux), that won't work. My best bet is to install either the x86 accelerated android, or use something like Android-x86 from my host machine.
How could I get Xamarin to connect to a device that not's running on the same machine though?
It's possible to configure ADB to debug over the network instead of USB. Check out Xamarin's document titled Setup Device for Development, and scroll down to the section titled Connect the Device to Computer for directions on how to do so.
This is pretty basic but have you enabled USB debugging on your Android phone?
http://www.wugfresh.com/faq/how-do-i-enable-usb-debugging-on-android-4-2-the-developer-options-menu-item-is-gone/
follow those instructions if you havent...

Emulator response is very slow

Emulator in android is very slow and at times it is not responding as well. Does emulator performace is dependent on system configurations?
Is there any other way to view the android app output other than emulator? Kindly please suggest me as emulator is wasting most of my time.
It is not a problem with your environment, it is just that the emulator is very slow.
Practically I use a real phone to do my tests. It is faster and tests are more realistic. But if you want to test your application on a lot of different Android versions and don't want to buy several phones, you will have to use the emulator from time to time.
The Android SDK now alows to use an x86-based Android emulator. See http://developer.android.com/tools/devices/emulator.html#accel-vm
Try Android x86. It's much faster than the Google Android emulator. Follow these steps:
Install VirtualBox.
Download the ISO file that you need.
Create a virtual machine as Linux 2.6/Other Linux, 512 Mb RAM, HD 2
GB. Network: PCnet-Fast III, attached to NAT. You can also use a
bridged adapter, but you need a DHCP server in your environment.
Install Android x86 on the emulator, run it.
Press Alt+F1, type netcfg, remember the IP address, press Alt+F7.
Run cmd on your Windows XP system, change the directory to your
Android tools directory, type adb connect <virtual_machine_IP>.
Start Eclipse, open the ADT plugin, find the device, and enjoy!
Yes, you can speed up the emulator by running the Atom x86 system images instead of the ARM ones (since those CPU instructions need to be translated and thus is slower). Read more here:
http://developer.android.com/tools/devices/emulator.html#accel-vm
The android emulator is slow, can't do much about it. However Intel HAX can speed up your emulator speed significanly. HAX must be installed from your android-sdk-direcotory/extrax/
Then setup your emulator to use the correct system-image. Take a look at intel-hardware-accelerated-execution-manager

How to configure an Android Virtual Device to work on my home computer

My computer confguration is:
Processor: Interl Celeron 1.8 MHz
RAM: 1 GB
When I've run Android emulator it stuck in a cycle, because of lack of memory. How to setup it to run on my computer? Is there any chance?
intepenit
Thanks.
I have the same configuration on my laptop, but it works very very slowly. I prefer using the phone to debug my apps. Only thing you can do with no real device is to disable all unuseful applications and services in your OS. This might help a bit, but anyway you won't get the speed you need.
If you just want to run your applications (no debug) then you could try YouWave

Categories

Resources