Hi,
You can declare your activity with singleTask launch mode.
<activity android:name=".YourActivity"
android:label="@string/app_name"
android:launchMode="singleTask"/>
More details:
http://developer.android.com/guide/topics/fundamentals.html#lmodes
On Sat, Jul 31, 2010 at 1:11 PM, Tim <[email protected]> wrote:
> In a broadcast receiver I want to do the following:
>
> 1. See if MyActivity is alive somewhere.
> 2. If it is, bring it to the foreground.
> 3. Otherwise, start a new MyActivity.
>
> Is this possible?
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Adriano Godinho
--
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