I'm new to Android so please be as explicit as possible. I'm trying to creat开发者_开发百科e a new activity. the problem is that when I run the emulator from eclipse, I get the old version of my app. I guess it's still running. Is there a way to force a fresh install/restart of my new app? I've read about the life cycle, and this might be related to that... but not sure.
How can I keep testing my app while I'm developing, and get the most recent version of my code on the emulator?
Any help will be appreciated.
Just run the app from eclipse and the new version will get pushed to the emulator and force stop or replace the old version. Note that if there are any compile errors, it will not do it. If you just launch the emulator from the avd manager, or just run the app from the emulator launcher it will only have the last version you pushed to the emulator.
You don't need to restart the emulator or anything.
If you ever do need to uninstall, you should be able to do this through the phone/emulator menus Settings->Applications->Manage Applications->[Application Name]
However, this is not normally necessary, as the latest version should be pushed on a successful IDE build (or ant install)
Hope this helps,
Phil Lello
精彩评论