Nazerke
Nazerke

Reputation: 2098

Equivalents of super.onSaveInstanceState() and super.onRestoreInstanceState() to use in onPause() and onCreate() respectively to save view data

super.onSaveInstanceState(outState); and super.onRestoreInstanceState(savedInstanceState); automatically saves views, but onSaveInstanceState and onRestoreInstanceState aren't called always. I need equivalents of above two super calls to use in onPause(), to save views when I leave activity and restore saved views in `onCreate()'. How can I do that?

Upvotes: 0

Views: 57

Answers (0)

Related Questions