Consider adding a special flag to the intent you use to start the activity:

They are documented with Intent, and start with FLAG_ACTIVITY_. The one you
can try is called, I believe, _REORDER_TO_FRONT.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
28.11.2010 12:25 пользователь "LSDsl" <[email protected]> написал:
> In my application I open contact view details usng intent:
> Intent intent = new Intent(Intent.ACTION_VIEW);
> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> final Uri lookupUri =
> ContactsContract.Contacts.getLookupUri(contactId, contactLookup);
> intent.setData(lookupUri);
>
> After startActivity() al ok. Activity start and I see contact detail.
> But when I start activity second time (with the same lookupUri) it is
> open new activity instead of update previously run (and now there are
> 2 view contact activity run with 1 contact details). how I can prevent
> this? I want to update exist view contact activity.
>
> P.S. I can change android sources.
>
> --
> 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

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