Sunday, 4 February 2018

android - Home key press behaviour

While developing a sample android application i have constructed two activities
1)Activity 1
2)Activity 2




Now Activity 2 is the foreground activity whereas Activity 1 is the background one. Now user presses Home key. The application(i.e. both the activities) dissappear. Now is we relaunch the application we see Activity 1 as the foreground activity. My question is:



1)Does the platform maintain any history entry when pressed home key?
2)How do we take the user to the last launch activity on relaunching the application?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...