singleTask launch mode did the trick. No more duplicates running on top of
each other. Thank you for the help!

On Tue, Jan 13, 2009 at 12:50 PM, A T <[email protected]> wrote:

> try the singleTask launch mode in the activity tag of your manifest.
>
>
> On Tue, Jan 13, 2009 at 12:48 PM, Torgny <[email protected]> wrote:
>
>>
>> Is there any way that you can send extra data with the pending intent
>> to the activity?
>>
>> On Jan 12, 3:59 am, Gothy <[email protected]> wrote:
>> > Same problem with my app, but mine is not a main activity to do your
>> > hack proposed.
>> > The main problem is that when this happens passed parameters from
>> > notification intent are ignored and activity starts with initial
>> > parameters, like it was opened again during usual navigation...
>> > Those intents are making me angry again and again :E
>> >
>> > On Jan 12, 3:33 am, Torgny <[email protected]> wrote:
>> >
>> > > I am trying to create a notification in a service to notify the user
>> > > that the application's data has updated in the background. I want the
>> > > application to resume when they click the notification. When I click
>> > > the notification I get this message in DDMS:
>> >
>> > > 01-11 16:16:10.574: WARN/ActivityManager(56): startActivity called
>> > > from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for:
>> > > Intent { comp={com.example/com.example.view.ExampleActivity} }
>> >
>> > > This forces the activity to start even if it is already paused or
>> > > stopped, so it never resumes, it just creates a new instance of it,
>> > > overlapping everything, including service connections. If the
>> > > application is already running, another copy of it starts on top of
>> > > it. How do I make Android just resume the activity?
>> >
>> > > Thankful for any help!
>> >
>> > > Warm Regards,
>> > > Torgny >>
>>


-- 
Warm Regards,

Torgny Bjers
Phone: 336-793-6339
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to