views:

1606

answers:

3

Is there a way to reload an Android application in the emulator without closing the emulator, saving any code changes, and running the emulator again? If I make even a simple change to the layout, it takes about 30 seconds by time I run it in Eclipse and Android "boots", and I can unlock the emulator to run the application. Is there any way to shorten this time when making changes, or is it something I just have to deal with?

+12  A: 

The Android emulator is hot-deployable. Once you save and click 'run' (assuming no compile errors) it will package and re-deploy to the emulator which will then restart the app to run the new version. The same is true if you have an Android Developer Phone connected via USB.

Kevin Williams
turn around is still slow, but should be much quicker than the 30 seconds you are dealing with.
Kevin Williams
A: 

Thanks kevin: I hold the same question as Tai Squared before.

itemon
Comments about answers should go with the answer being commented upon. See "add comment" below answers.
dclowd9901
A: 

instead of running from eclipse, use following batch files in project directory to install and uninstall the apk. Those work great and fast.

Install.bat

cd bin
adb install *.apk

Uninstall.bat

adb uninstall this.is.package.name
Vijay C
That's slower, requires a new script for each project, and not automated like running from Eclipse is.
Christopher
yes..uninstall script has to be new one for each project..but install script is generic.and it works fast for me than eclipse...may be its my eclipse as i have it loaded.. :)
Vijay C