Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

super.onSaveInstanceState does not exist

$
0
0

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.


Viewing all articles
Browse latest Browse all 941

Trending Articles