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

后端 未结 7 740
遥遥无期
遥遥无期 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:54

    That flag is there for exactly this reason. The idea is to check and make sure your app handles its activities being destroyed. You can't override it because in the real world it might happen even without that flag if the device is low on memory. You need to code things to handle this case not override it.

提交回复
热议问题