savedInstanceState is always null

前端 未结 13 2133
星月不相逢
星月不相逢 2020-11-29 00:53

This is my savedInstaceState code:

@Override
public void onSaveInstanceState(Bundle savedInstanceState) 
{
    savedInstanceState.putStringArrayList(\"todo_a         


        
相关标签:
13条回答
  • 2020-11-29 01:48

    Shouldn't super.onSaveInstanceState(savedInstanceState); be the first line in your override?

    Edit: War_Hero points out in the comments that the documentation on that topic indicates that no, it shouldn't be the first line.

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