Hi Phil,
thanks for your help!
Your commit reads "run-stories target no longer depends on install". I
don't think there is any problem with installing the app again, at
least I have no problem with it. The real problem seems to be that
"install" depends on "start-emulator", so whenever I want to install
the current version, the emulator is restarted.
The solution that works best for me now:
Removing depends="start-emulator" from all targets, so that I don't
end up with multiple emulators running at the same time. Of course, if
I forget to start an emulator before, and then I run e.g. "install",
it fails, but that's ok for me. I have to start an emulator manually,
if I want it to survive, and I can do this by "ant demo" or from
within Eclipse or whatever method I like. I do this once in the
morning when I start working, and if the emulator doesn't crash, I
reuse it all day long.
The nicest thing would be, of course, an Ant task that checks if an
emulator is already running, if not, starts one, and lets it live
forever. Then I would not have to remember starting the emulator once
a day.
> The
> one thing we can't currently do is start an emulator from within ant
> and have it survive ant, since it requires OS process trickery that
> doesn't port too cleanly across platforms.
Ahh, that's the problem here. If it's not possible to do it the clean
way, then I understand it would be wrong to include it in auto-
android. The current solution works for me.
best regards,
Brian Schimmel