aspose file tools*
The moose likes Android and the fly likes Emulator takes long to start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Emulator takes long to start" Watch "Emulator takes long to start" New topic
Author

Emulator takes long to start

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 509
How can I reduce the time period?

I have few points,

1) 2 hardware properties of AVD, MAX VM heap size and Device RAM size. What value do you guys set for each of them?

2) Go to DDMS perspective, under Devices -> your emulator, you see how many processes are online(running). I found here that, there are many processes which has nothing to do with app that I am developing. Is there any way to configure how many processes you want to start when you start your emulator?

zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 153

1) 2 hardware properties of AVD, MAX VM heap size and Device RAM size. What value do you guys set for each of them?


These properties can be given values and this would be helpful if you are targeting a particular end device to deploy your app with values matching that of the device but otherwise you can leave it for its default values and secondly

2) Go to DDMS perspective, under Devices -> your emulator, you see how many processes are online(running). I found here that, there are many processes which has nothing to do with app that I am developing. Is there any way to configure how many processes you want to start when you start your emulator?


I know you are very keen on reducing the start-up time by cutting off the unnecessary processes but resist that urge because you would end up running your app on an android device and the best way to find out how it behaves is emulation and what it is explained here

Best Regards,
Zoheb
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I haven't found the emulator taking all that long to start up, except with an Android 3.x AVD (and I didn't tinker with any VM settings). Are you using a reasonably state-of-the-art machine, say, no older than 2 years? For development of any kind you generally want a powerful machine.
Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 509
Are you using a reasonably state-of-the-art machine, say, no older than 2 years? For development of any kind you generally want a powerful machine.

I have pretty powerful machine, Dell Vostro 1510 1.80GHz, Intel Core 2 Duo, 3 GB RAM. Windows XP SP 3

These properties can be given values and this would be helpful if you are targeting a particular end device to deploy your app with values matching that of the device

When I set to values explicitly that is MORE than default values, I often get this emulator does not start error. See screen shot attached.


[Thumbnail for emulator-error.PNG]

zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 153

Saurabh the config you consider powerful is actually pretty dated, the current gen talks in terms of core i5's and i7's from intel and PhenomII processors from AMD all dual or quad cores operating at speeds exceeding 3 GHz.Now those are the ones rocking the market and Man if you own one of these the performance is gonna be awesome

-Zoheb
Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 509
Thanks Zoheb. I may buy new machine.

By the way, I am wondering if you can give your thoughts on emulator-does-not-start problem.

Thanks again.
zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 153

If you are getting a new machine for the sake of android development only, i suggest you rather get a new android device it's cheaper and the pleasure of running your app run on a device is great and as for the emulator cannot run problem might be due to hardware limitation and oh hey when you feel that your topic got the right answer i.e., you were able solve the issue for which you created a topic just go ahead and mark it as resolved.it would help guys facing similar problems

-Zoheb
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Emulator takes long to start