On Sat, Apr 18, 2009 at 8:50 AM, Mohamed Amir <mohamed.a...@gmail.com> wrote:
>
> I have a Service that starts an Activity on certain event passing to
> it some parameters.
>
> The problem is if the Activity is still open, when the service tries
> to startActivity() again, the activity isn't started because it's
> already started.
>
> Is there a way to force the destruction of the old Activity and start
> a new one with the new parameters?

Your existing Activity will receive the new Intent in its Activity.onNewIntent()

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to