onSaveInstanceState is not saving my values ( onCreate input Bundle is always null )

前端 未结 6 1456
轻奢々
轻奢々 2020-12-10 12:19

Saving bundle (activity A):

@Override
protected void onSaveInstanceState(Bundle outState) {
    outState.putString(\"test\", \"value\");
    super.onSaveInst         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 12:49

    You have to do super.onSaveInstanceState(outState) before adding content to it.

提交回复
热议问题