How to know “Don't keep activities” is enabled in ICS?

后端 未结 7 730
遥遥无期
遥遥无期 2020-12-05 11:32

How to know in settings \"Don\'t keep activities\" option is enabled in ics via code. If it is in enabled,how to prevent the activity.

Note: I have used more activit

7条回答
  •  死守一世寂寞
    2020-12-05 11:53

    The questioner has right and he has got a good question, which is still not be answered :-)

    I tested this issue with a clean simple example. The fact is, that when the option 'do not keep activities' is checked, then activities will be killed. For example: A Mainactivity calls a subactivity. The mainactivity is killed. Pressing back on the subactivity results in restarting the Mainactivity. This can be a problem, when the mainactivity is doing longrunning stuffs like loading content.

    My conclusion on this. The option 'do not keep activites' is an developer option and should not be set under normal user-conditions. So developer should be able to detect this setting.

提交回复
热议问题