android:alwaysRetainTaskState = false not being respected, task state always retained -


i app exhibit default behaviour described android:alwaysretaintaskstate in android documentation:

normally, system clears task (removes activities stack above root activity) in situations when user re-selects task home screen. typically, done if user hasn't visited task amount of time, such 30 minutes.

this isn't i'm seeing. after >1 day, re-starting app using launcher icon returns user place left it. example, after fresh install app displays home screen activity h when launched. user navigates detail activities: h -> j. on relaunching after long time, user see h, instead see j.

these flags set on activity in androidmanifest.xml:

<activity     android:name=".apphomescreen"     android:label="@string/app_name"     android:alwaysretaintaskstate="false"     android:launchmode="singletop"     android:windowsoftinputmode="stateunchanged">     <intent-filter>         <action android:name="android.intent.action.main" />         <category android:name="android.intent.category.launcher" />     </intent-filter> </activity> 

i running android kitkat 4.4.2.

is there reason why might not seeing expected behaviour here? know set android:cleartaskonlaunch or android:finishontasklaunch clear task every time user leaves app, aggressive, i'd described behaviour state forgotten after long period of inactivity.

(the android documentation doesn't seem guarantee behaviour, task cleared in "certain situations" , "after amount of time, such 30 minutes". maybe default behaviour changed , android docs out of date?)

this behaviour manufacturer/vendor-specific. on different devices see different behaviour. there devices aggressively clear out tasks , others retain task state longer periods of time.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -