I also have this same issue. Right now I'm handling it simply by passing an empty Intent so that a click does nothing, but is this far from ideal (although still better than destroying the activity stack which crashes my app).
Anyone have some insight? On Aug 16, 4:23 pm, Gustav Mauer <[email protected]> wrote: > My applications carries on processing when the user presses the home > key, and generates status bar notifications if something happens the > user requested to be notified about. > > If a user holds the home key and then selects the application, it is > restored in its correct state with the activity on top that showed when > the user left. > > However, since the intent that is associated with the status > barnotificationis FLAG_ACTIVITY_NEW_TASK and I put in the class name of > the activity that launched the application (I assume this is what I must > do?), the launcher activity is started when thenotificationis > "clicked". I can then switch the application back to the current > activity by starting that "active" activity again, but then I seem to > have two instances of the activity in memory, since I have to press back > twice to leave it. And I suspect my activity stack is then messed up as > well. > > I have set the launcher activity to be singleTask, but that only helped > a bit. From my reading I thought this would just give the task focus if > the launcher activity is not on top, but instead it gives the launcher > activity the focus. > > Is there a way for anotificationclick to work more like the task > switcher provided by long pressing the home button? Thank you in advance > for any advice. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

