onSaveInstanceState () and onRestoreInstanceState ()

前端 未结 13 2349
孤城傲影
孤城傲影 2020-11-22 04:48

I\'m trying to save and restore the state of an Activity using the methods onSaveInstanceState() and onRestoreInstanceState().

13条回答
  •  萌比男神i
    2020-11-22 05:49

    I think this thread was quite old. I just mention another case, that onSaveInstanceState() will also be called, is when you call Activity.moveTaskToBack(boolean nonRootActivity).

提交回复
热议问题