Relationship between android:noHistory and android:finishOnTaskLaunch -


how these 2 attributes relate? if have android:nohistory="true", having android:finishontasklaunch="true" have significance/meaning?

let's have 3 activities in app: a, b, , c. start app , see a, click button , see b, click button , see c.

first scenario

now if press button on phone, see b.

second scenario

let's b has android:nohistory="true". if press button on phone, see a. android:nohistory="true" attribute removed b history (i.e. activity stack), not see when hit button.

third scenario

let's c has android:finishontasklaunch="true". if press home button on phone , launch app again, see b. android ended c when launched app again because has android:finishontasklaunch="true" attribute.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -