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?
Asked
Active
Viewed 57 times
0

Nazerke
- 2,098
- 7
- 37
- 57
-
Have you tried SharedPreferences? – gian1200 Nov 28 '13 at 17:43
-
what exactly about it? All I know is you can save int, boolean, string , etc and get it back via set and get methods, but I don't know how you would save the layout as easily as super.onSaveInstanceState(). any suggestions? – Nazerke Nov 28 '13 at 17:50