Hi Arpit,

Check lainch modes of an activity (http://developer.android.com/guide/
topics/manifest/activity-element.html#lmode) and the flag
FLAG_ACTIVITY_NEW_TASK



Thanks,
AJ

On Sep 13, 11:51 am, Arpit <[email protected]> wrote:
> I have the a scenario where number of Activites are invoked:
>
> Activity A --> Activity B --> Browser Activity --> Activity C...
>
> By Browser Activity I mean, Activity B will do the following:
>
> String url = "http://example.com";;
> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
>
> On Activity C , when user clicks the back button, it always returns to
> the Browser Activity. I do not want this to happen...
>
> I understand that each time one Activity calls another, the caller
> activity goes onto a stack?? Is it possible to restrict it going onto
> the stack, so that when user press back button on Activity C, it goes
> to Activity B, skipping the Browser Activity?
>
> Please help!!!
>
> Regards,
> Arpit

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