I'm making an app which has multiple pages, and I'm overriding onSaveInstanceState to save across rotation. But then, I get the error "The function onSaveInstanceState(Bundle) does not exist". My code is
public void onSaveInstanceState(Bundle savedInstanceState){
savedInstanceState.putInt("TheInt", page);
//the variable 'page' is the number of page the app is in
super.onSaveInstanceState(savedInstanceState);
}
I'm happy to provide more information if anybody needs any.
↧
super.onSaveInstanceState does not exist
↧