Android AVD - Faster On Windows Or On Ubuntu VM? - android

My Android emulator runs painfully slow on my PC so I was thinking about installing Ubuntu on a virtual machine and running the AVD there. Do you think it would be faster if I did so?

you have two solution.
one, you install AndroVM on VirtualBox.
AndroVM
this way is very faster, but bit difficult to setup and controll.
other way is create AVD which is made in Intel x86.
Configuring the x86 Emulator
this way is very fast too.and setup and controll is very easy compare to general emulator.
but this way require CPU which support Intel VT / AMD-V
both way is good,please choose you like :)

I would put my money on Linux - as it has less of a footprint OS wise.
On the other hand, Windows is by far more used, so if they've developed it and put time into the one that is used the most, it could be Windows.
As a side note: there are several new android emulators that run on windows, some I've seen actually interface with the hardware (this avoids a layer of abstraction).
If your concerned with speed, you will get better performance with less programs running as the emulator is process intensive. (My i7, 8gb ram, is usable for developing - though nothing beats a device... Or nexus for that matter)
To connect to your computer: Debugging on my phone (Eclipse, Android)

Related

Best Option for Speeding Up the Android Emulator

I have an older AMD processor with integrated graphics (AMD Athlon II x4 640) and the android emulator runs really slow. The integrated graphics don't work with the "Use Host GPU" option and I can't use the faster Intel system images because I have an AMD processor.
I have heard Genymotion is faster but I can't use it since my integrated graphics don't support OpenGl 2.0+.
What would be the best upgrade: getting a graphics card or getting a new computer with an Intel processor?
A physical mobile phone connected via USB is faster than the emulator running on a amd rig. My current budget forces me to test this way but hey there mobile apps might as well do some testing when I'm out and about.
I apologize in advance for recommending a purchase of a product which is not allowed but you can get a decent inexpensive no contract phone in the US a lot cheaper than a new intel rig.
You can do following steps to speed up Android Emulator
1)Install HAXM in your SDK manager>Extras>HAXM.
2)Create Lower RAM Size Emulator if you have less RAM in your computer.
3)Close Other Unnecessary Process from TaskManager while you are running Emulator.
4)Use less Screen density(ldpi,mdpi) at the start.
5)Increase RAM of Your Computer Emulator will speed up.
6)Update your sdk with latest update

Hardware requirements for android SDK assuming no emulator

I have an old laptop running Windows Vista with a 2.6 Ghz Intel Celeron and 2 gigs of RAM. I was considering installing Lubuntu or another lightweight Linux distro on it to use for travel. Would this be able to run the Android SDK/Eclipse reasonably well? All other threads I could find were about running the emulator-I will be running the apps on my Galaxy S4 or Nexus 7, so I just need Eclipse to run.
Thanks in advance.
It should be able to run it, but probably not very fast. The Celeron line of processors had a small internal cache and were only single core. Eclipse is a big piece of software which uses a lot of RAM and can be disk intensive as well. I've got an older Core2 Duo 2GHz with 4GB of RAM and Eclipse/ADT can be pretty sluggish at times if I have to use that machine. Good luck!

Is Eclipse and Android SDK (Simulator) is faster on Windows or Mac machine?

I have 2 machines, one runs Windows 7 and another Mac. Hardware config is almost the same in the two, 2.4 with 4G RAM.
I notice the android simulator is slow in Windows 7, whould it run faster if I intsall Eclipse and Android SDK on the Mac machine?
what about Eclipse and Android SDK in general?
I think android device is better option that simulator it is much much faster than simulator. If you are planning for serious development then you should buy one android device.
I have a 13" Macbook pro (2010 model, 2.4ghz, 4 gig ram) and the emulator is pretty slow on it... I tend to develop mostly on my Linux desktop, which is 2.4ghz machine as well, and while the emulator is slow it's still MUCH faster than the Mac. Eclipse runs about the same on both... actually the Mac might even be slight faster since it has a SSD.
It's been my experience from watching other Macs run the emulator that the emulator is just slow on Mac :(
I know Google recently updated the the ADK to include speed improvements for the emulator, but I haven't tried that yet.
Try running it on mac, I did the same and found that the emulator runs much faster on mac, as compared to windows.
I have a windows 7 laptop 2 yrs old (8GB, i5) and 15inch MacBook pro 2012 (16GB, i7). I might also note that I am primarily a .NET developer, so I should be bias towards OSX.
I found that running the emulator and the ide on a mac runs faster than windows. I know the mac is considerably faster than my windows box but the difference in the speed of eclipse/emulator doesn't jive. The emulator runs smoother. Eclipse compiles faster on my Mac. The debugger settles/attached to hardware devices quicker.
My experience developing with Eclipse (Android SDK) is much more pleasant on the Mac than windows
I develop primarily on a desktop running Windows 8 since most of our apps are written in C#, I always found debugging painful on both a Samsung S3 and using the emulator.
I had read about using Intel HAXM which is available in the Android SDK Downloader, but never enabled it since I use Hyper-V on my desktop as well.
Fast forward, I'm now using a MacBook Pro because of needing to do iPhone development as well. I installed HAXM on the MacBook, and it made the x86 Android emulator run extremely fast.
TLDR: Install Intel HAXM on a machine with a modern CPU and you'll find running apps on your machine significantly faster.
If you do have Hyper V installed, you can disable it temporarily by creating a boot entry that causes Windows to boot with it disabled.

i5, 6GB RAM and Android 3.0-3.2 emulator still unsuable (cannot start any app)?

I do not know what to do. I purchased a new laptop, hp pavillion i5 6GB RAM, started Android 3.2 emulator and it is still as slow as unusable!!!
It's not that it is slow, it's that I cannot do anything.
I set 1GB of RAM, disabled camera on emulator and run it. When I click on Applications, they first load for 30s and then I am not able to start any app, not mine, not default ones. All I can do is return to desktop and open Applications menu.
I see people complain that the emulator is slow and I am not even able to make it run. What is worse, my laptop eats games like a sandwich, but it chokes with Android emulator 3.2. The same is with Android 3.0 emulator!
Can anyone help me set up the emulator so that I can run it on my machine?
PS. if you want, I will record a video and post it to visually see what I am talking about.
I do not know what to do. I purchased a new laptop, hp pavillion i5 6GB RAM, started Android 3.2 emulator and it is still as slow as unusable!!!
The Android emulator uses a single core. If you had gone with a Core i7 with Turbo Boost, that would have helped. Your Core i5 is not an especially powerful CPU on a per-core basis.
The Android 3.x emulators also do all graphics purely in software (no hardware graphics acceleration) and convert ARM instructions to x86 on the fly.
Can anyone help me set up the emulator so that I can run it on my machine?
Start by using the Android 4.0 emulator, with the latest Android development tools. This uses your desktop's GPU for graphics rendering, and it helps performance a bit.
If that proves insufficient, you can start switching to x86 emulator images if you are not doing NDK development (where you will tend to want to test on ARM). At the moment, the only official x86 image is for 2.3.3, but there is an unofficial one for 4.0.3 built from the AOSP that runs exceptionally fast (at least on Linux, haven't tried it on Windows).
My only suggestion to you would be to change the "ADB Connection Timeout (ms)" in Eclipse under Window->Preferences->Android->DDMS. I am using a HP Pavillion 486 laptop, and was really struggling with the emulators. I changed the default timeout value from 5000 ms (5 sec) to 60000 ms (1 minute). This didn't solve all of my problems, but it did help in the startup of both the emulator and my applications.

Android Emulator is so slow that it is unusable

My experience with the Android emulator is that it is so slow that it is unusable. I see threads related to the issue going back over a year. The lack of a coherent response to the question is unacceptable (this is not the Community's fault).
Question: Has anyone that has experienced extreme slowness (more than 15 minutes to launch) actually resolved this issue so that startup is less than a couple of minutes? If so, what did you do?
Please note that I am not trying to tie the emulator to Eclipse. I am teaching mobile web app development using jQTouch. The web apps are testing by running the emulator standalone and opening the Browser.
While my machine is a little dated, I have no trouble running Vista, Office, PowerStudio, etc. Here are details to add to the data around this issue.
OS: Microsoft Vista, 32-bit
Processor: Intel Celeron M CPU 520 # 1.60 GHz
Memory: 1.5 GB
Symantec Antivirus - Disabled
Emulator Start with no animation - did not help
Startup time in excess of 20 minutes
Java Version: 1.6.0_21
AVD Settings: Device RAM size 1024, Snapshot support enabled both in AVD and startup. - ram size and snapshot did not help
Google needs to acknowledge the issue and provide guidance about what development environments actually work. If there were a recommendation for platform, java version, memory, etc., I would follow it.
Right now I have no options other than to tell students that the Android emulator doesn't work. The only android solution is to buy a real phone, which limits testing to a single Android version and configuration.
Students are not having trouble with the iOS simulator running on the Mac.
If someone that works for Google could actually comment, that would be great.
Thanks,
Dale
The Android emulator is just that, an emulator -- it is emulating an ARM processor. Emulation will never be as fast as native. Given you are using such a large amount of your computer's memory for the emulator, you are likely having to page consistently, which will add to making the performace suffer.
The iOS simulator on the other hand is just a set of APIs that matches the iOS SDK and pretends to be an iOS device, but is running all code natively on the machine with all the resources, processor speed and memory the machine has, and likely to run significantly faster than running on the actual device.
I have no problem running the Android emulator on my old Core Duo T2400 # 1.83GHz with 2GB of RAM. The startup time can be a few minutes, but once it is running it works well with only occasional lag.
My desktop with a Core 2 Quad Q6700 # 2.66GHz with 2GB RAM tears through the emulator.
Both machines have run the emulator under Windows and Linux with varying Java versions getting similar results. My guess is that your processor is a little on the weak side.
check this article How to speed up the android emulator by up to 400
Or in brief, download an android-x86 build here, install with virtualbox, find ip address of android vm by alt+F1 and netcfg (alt+F7 to go back to graphical mode), and connect to the vm using adb (say adb connect 192.168.1.5).
Just used it, much more faster.
I've found the emulator to be very slow too - I think it's best to have a working android device and just have the emulator for a backup 'second opinion' or a reference device. It's usable but much slower than my phone, even though my current device is quite low end.
Eventually, I found that sending my code to the physical device (or emulator) was becoming a bottleneck so I build a small framework to allow me to develop most of the work as a desktop application. This has worked very well so far and has sped up my development turn around considerably. Your milage may vary.
Try using Genymotion emulator for android which is fast and also support all major platforms including Linux/Mac and windows. It also has specific emulator image files to emulate actual mobile devices like Xeperia Z or Nexus 4 and so forth.
Use Genymotion. It s is a very fast android emulator.
Android emulator is just a emulator, it emulates an Android device. It's like virtualization, you share your computer's resources with emulator, you'll need to have the latest processor and at least 8GB or RAM to run faster. About RAM: Windows and background programs consumes a part of your resources, if you upgrade your computer resources, the consumption of these software will be almost insignificant and you'll have a lot of resources for your emulator (supposing you also have Eclipse or Android Studio running).

Categories

Resources