I am using the awesome ActionBarSherlock library for my app which runs with minSdkVersion 8.
The last bit I have to learn is how to save values for further calls of the same SherlockFragmentActivity (without the activity been destroyed in between)
All I tried so far doesnt seem to work
- setRetainInstance() is not supported in the underlying support library
- onRetainNonConfigurationInstance -> Cannot override the final method from FragmentActivity
- onRetainCustomNonConfigurationInstance doesnt seem to be called
I hope I oversee something easy. Basically i want to store some values so I can retain a state when the user clicks the home button (action menu up..) How to go about this?
Thanks a lot
martin
You simply save the information about your activity state to permanent storage. I’d recommend looking into sharedpreferences
Also the
setRetainInstance()IS supported by the current underlying support library (r7) for ABS.