Android - Is the intent preserved during activity recreation?

前端 未结 1 330
鱼传尺愫
鱼传尺愫 2020-12-15 04:50

I am building an android application, and would like to ask if the intent that started an activity (which is reachable via the getIntent () method) is saved

相关标签:
1条回答
  • 2020-12-15 05:21

    Will I still be able to retrieve the extra string from intent, or even the intent itself if the activity is recreated due to device rotation

    Yes. You will have the same Intent (or, at least, a copy of the Intent) after the configuration change as you had before the configuration change.

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