androidManifest activity android:excludeFromRecents

前端 未结 1 505
礼貌的吻别
礼貌的吻别 2021-01-13 15:33

I am using following code to open an activity as a popup window using



        
相关标签:
1条回答
  • 2021-01-13 15:53

    Use android:noHistory="true"

    Whether or not the activity should be removed from the activity stack and finished (its finish() method called) when the user navigates away from it and it's no longer visible on screen — "true" if it should be finished, and "false" if not. The default value is "false". A value of "true" means that the activity will not leave a historical trace. It will not remain in the activity stack for the task, so the user will not be able to return to it.

    0 讨论(0)
提交回复
热议问题