Reputation: 255
I want to retain the text data in the webview (i.e the data entered in the text box of the form in the url loaded) across the orientation changes. I used, onSaveInstanceState() *restoreState(savedInstanceState) it restores previous state but not the values.
I resorted to use webview with Fragments, still no luck in retaining the data. Also when using Fragments the app crashes when orientation changes.
I cannot use android:configChanges="keyboardHidden|orientation as I need keyboard when the orientation changes.
Can anyone provide a solution to this ? Thanks in advance.
Upvotes: 0
Views: 693
Reputation: 25584
Can't you use android:configChanges="orientation|screenSize"
without the keyboardHidden
?
Edit: You may also want to use screenSize
when targeting API 13 or higher.
Upvotes: 2