Mikooos
Mikooos

Reputation: 5430

Back key behavior after up action

Here http://developer.android.com/design/patterns/navigation.html is some tips about back and up navigation. It's quite clear what does up do on this example, it closes those activities.

But what happen here? I go to the market, open book, then another one, then open movie, and then I decide to press up to go to movies category.
What has happened to books activities?
Can I somehow go to them?
Where do I go when I click back button, to the market?

Upvotes: 1

Views: 186

Answers (2)

user1473997
user1473997

Reputation:

The UP button will navigate within App. The UP button ensures that the user remains within App. The topmost screen of an app should not present the UP Button.

However, the system BACK button can return the user to the Home screen, or even to a different app, which is unlike UP Button. When the previously viewed screen is also the hierarchical parent of the current screen, pressing the Back button has the same result as pressing an Up button

Upvotes: 1

Warpzit
Warpzit

Reputation: 28162

I don't think there is book activities, I think it is fragments. But about your question. If you read the navigation details it states:

The system Back button is used to navigate, in reverse chronological order, through the history of screens the user has recently worked with. It is generally based on the temporal relationships between screens, rather than the app's hierarchy.

In other words you should go back to selected movie, from there the selected book and etc. This however needs to be implemented by the developer and often it isn't. Which is why back button might just bring you back to market/play store from the movies top category.

Edit: So above was my first thought. Based on experimenting with google apps and looking into the example I change my advice to following:

When you go up to the new root (movie) then the app should close. The reason for this is simply that the user has navigated to a new top hierachy and would probarbly be anoyed by having to go through whole the last navigation. This also means that when the user clicks up in movies whole the back track stack is lost.

Upvotes: 0

Related Questions