I can make a notification with a pending intent and extra data spawn a new task with a new activity just fine. What I am required to do is make it so clicking the notification will bring up a new activity in an existing task by placing the activity next in the stack if an existing task that shares its affinity in the same package.
IE TASK: A B C Clicking a Notification creates an activity B so now Task: A B C B However as long as the Task exists the notification will only make the task come to the top with C showing. Now, this is as per documentation when an Intent has FLAG_ACTIVITY_NEW_TASK which is what all intents coming from a service have, like it or not, because it isn't part of an activities context. At the very least I would expect refocus to the Task to trigger the "onNewIntent" for the current running activity or pass the intent to the Application context, but it does not so all new intent data is completely lost. Are my hands tied in this and I cannot use a notification to create a new activity in an existing task? The only solution that sorta gives me what I am looking for is adding the flag that allows creating of multiple instances, but that is not really what I'm looking for! Are there any other suggestions how I can get new extra data associated with a pending intent inside of a notification handed off to an existing task if it already exists before someone clicks the notification? Thanks, James --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

