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?
views:
1606answers:
3
+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
2009-04-08 05:08:18
turn around is still slow, but should be much quicker than the 30 seconds you are dealing with.
Kevin Williams
2009-04-08 05:09:14
Comments about answers should go with the answer being commented upon. See "add comment" below answers.
dclowd9901
2010-03-15 22:21:00
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
2010-09-16 22:06:52
That's slower, requires a new script for each project, and not automated like running from Eclipse is.
Christopher
2010-09-16 22:55:58
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
2010-09-17 06:48:28