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
Post a Comment