Yeah ADT launches apps differently than the home screen does. Assume the home screen is correct, and ignore this behavior from ADT.
On Tue, Jun 23, 2009 at 1:34 PM, Al <[email protected]> wrote: > > Hi, I've come across a very annoying problem, which only seems to > happen when I launch my app from eclipse for testing. If I launch it > normally, it doesn't seem to have this problem. > > This is how I can reproduce it: > - Launch app via Eclipse > - Press Home > - Relaunch app via icon > - Click menu->exit which tells the Service to clean up and calls finish > () when the Service finishes cleaning up > > For some reason, there seem to be two instances of the activity, one > exits normally and the other one gains focus. Clicking exit does > nothing since the Service has stopped but the Service variable is not > null. Attempting to use the app launches errors since the resource it > uses have been closed. I can force a close via the crash and relaunch > the app, and it exits normally this time. > > As I said, it only happens when launching the app via Eclipse. Anyone > know what could cause this? My launchMode is set to singleTask, > however, that shouldn't cause an issue, I used that mode before. I > tried calling finish() regardless of the state of the Service, but it > doesn't seem to help. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

