Sunday, 19 February 2017

android : behaviour on pressing HOme key for single task

I have my first activity as single task . And the activities launched from this one are all the default launch mode. Now when i press HOME from any of these activities and then relaunch the application again by clicking the icon from the list of application, it is always the first activity that is getting launched. Ideally the activity from which HOME was pressed should regain the focus when brought to foreground. What is the logic behind this behavior assosiated with single task.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...