honoring the back stack across applications

satya - Sunday, September 11, 2011 11:32:36 AM

Problem: if my app invokes a browser how to maintain the back track to my app?

Problem: if my app invokes a browser how to maintain the back track to my app?

satya - Sunday, September 11, 2011 11:33:16 AM

Read this first: tasks and back stack from google

Read this first: tasks and back stack from google

satya - Sunday, September 11, 2011 11:35:12 AM

a task is a collection or a stack of activities

a task is a collection or a stack of activities

satya - Sunday, September 11, 2011 11:36:14 AM

An entire task worth of activities could be pushed into the background...

to make room for a new initiated task

satya - Sunday, September 11, 2011 11:38:15 AM

This property of task pushing can throw you off when it comes to the meaning of back

If your activity starts a browser, that browser may have its own stack and hence the back button may not bring you back to your app but will cycle through the previous history of the browser stack.

satya - Sunday, September 11, 2011 11:40:12 AM

Pressd and hold the home key to see a stack of tasks

Pressd and hold the home key to see a stack of tasks

satya - Sunday, September 11, 2011 11:48:29 AM

Here is a note on the browser

As another example, the Android Browser application declares that the web browser activity should always open in its own task?by specifying the singleTask launch mode in the element. This means that if your application issues an intent to open the Android Browser, its activity is not placed in the same task as your application. Instead, either a new task starts for the Browser or, if the Browser already has a task running in the background, that task is brought forward to handle the new intent.

satya - Sunday, September 11, 2011 11:50:09 AM

This confirms my suspicion with the browser

Regardless of whether an activity starts in a new task or in the same task as the activity that started it, the BACK key always takes the user to the previous activity. However, if you start an activity from your task (Task A) that specifies the singleTask launch mode, then that activity might have an instance in the background that belongs to a task with its own back stack (Task B). In this case, when Task B is brought forward to handle a new intent, the BACK key first navigates backward through the activities in Task B before returning to the top-most activity in Task A. Figure 4 visualizes this type of scenario

satya - Sunday, September 11, 2011 11:50:30 AM

Clearly I need to do something different to make the browser come back to me.

Clearly I need to do something different to make the browser come back to me.

satya - Sunday, September 11, 2011 12:09:26 PM

flag_activity_new_task browser activity start android

flag_activity_new_task browser activity start android

Search for: flag_activity_new_task browser activity start android

satya - Sunday, September 11, 2011 12:10:34 PM

Read this: activity and task design guidelines

Read this: activity and task design guidelines

satya - Sunday, September 11, 2011 12:32:09 PM

how can i come back from a browser activity to my activity that launched it

how can i come back from a browser activity to my activity that launched it

Search for: how can i come back from a browser activity to my activity that launched it

satya - Sunday, September 11, 2011 12:33:44 PM

start a browser activity intent flags android

start a browser activity intent flags android

Search for: start a browser activity intent flags android

satya - Sunday, September 11, 2011 12:35:17 PM

This I think is my problem

This I think is my problem

satya - Sunday, September 11, 2011 12:36:43 PM

awsome no solution :( (Keep searching I suppose)

awsome no solution :(

satya - Sunday, September 11, 2011 12:37:24 PM

android navigating back from a browser activity

android navigating back from a browser activity

Search for: android navigating back from a browser activity

satya - Sunday, September 11, 2011 12:50:55 PM

in android how can i go back to my activity from a browser activity

in android how can i go back to my activity from a browser activity

Search for: in android how can i go back to my activity from a browser activity

satya - Sunday, September 11, 2011 12:56:01 PM

dianne browser activity back button

dianne browser activity back button

Search Google for: dianne browser activity back button

Search Android Developers Group for: dianne browser activity back button

Search Android Beginers Group for: dianne browser activity back button

Search Google Code for: dianne browser activity back button

Search Android Issues Database for: dianne browser activity back button