I had a similar situation. It was clearly a dev bug. I’ve overridden the wrong method:
public void onSaveInstanceState(Bundle outState,
PersistableBundle outPersistentState)
Instead a correct one:
protected void onSaveInstanceState(Bundle outState)
Related Contents:
- Android Shared preferences for creating one time activity (example) [closed]
- How to have Android Service communicate with Activity
- Passing a Bundle on startActivity()?
- onSaveInstanceState () and onRestoreInstanceState ()
- Android: Clear the back stack
- How to handle screen orientation change when progress dialog and background thread active?
- getApplication() vs. getApplicationContext()
- Android – How To Override the “Back” button so it doesn’t Finish() my Activity?
- Dilemma: when to use Fragments vs Activities:
- How to set ringtone in Android from my activity?
- Change application’s starting activity
- Why fragments, and when to use fragments instead of activities?
- How to stop EditText from gaining focus when an activity starts in Android?
- How to pass data from 2nd activity to 1st activity when pressed back? – android
- Calling startActivity() from outside of an Activity context
- Android Service Stops When App Is Closed
- Android singleTask or singleInstance launch mode? [closed]
- Pass data from Activity to Service using an Intent
- Android: how do I check if activity is running?
- requestFeature() must be called before adding content
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- Android. Fragment getActivity() sometimes returns null
- onActivityResult() called prematurely
- android how to create my own Activity and extend it?
- Sharing data between fragments using new architecture component ViewModel
- Android: Activity getting Destroyed after calling Camera Intent
- Best way to add Activity to an Android project in Eclipse?
- Notification click: activity already open
- Help with passing ArrayList and parcelable Activity
- Programmatically update widget from activity/service/receiver
- how to call a method in another Activity from Activity
- Losing data when rotate screen
- startActivity() from BroadcastReceiver
- Using ResultReceiver in Android
- Launch Skype from an App Programmatically & Pass Number – Android
- How to get hosting Activity from a view?
- Further understanding setRetainInstance(true)
- How do I maintain the Immersive Mode in Dialogs?
- Android ListView with onClick items
- One Activity and all other Fragments [closed]
- What are the differences between activity and fragment?
- View the Task’s activity stack
- Intent – if activity is running, bring it to front, else start a new one (from notification)
- java.lang.IllegalStateException: Fragment not attached to Activity
- Where/How to getIntent().getExtras() in an Android Fragment? [duplicate]
- Android: is using setContentView multiple times bad while changing layouts?
- How should I communicate between activities? [duplicate]
- android finish() method doesn’t clear app from memory
- Refreshing activity on receiving gcm push notification
- How to know the calling activity in Android