When I backup & restore the state of my WebView, I receive this message: the webpage at x Address might be temporarily down or may have moved permanently to a new web address.
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
super.onSaveInstanceState(savedInstanceState);
webViewShowPoll.saveState(savedInstanceState);
}
@Override
public void onRestoreInstanceState(Bundle outState) {
super.onRestoreInstanceState(outState);
webViewShowPoll.restoreState(outState);
}
Androidmanifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SET_DEBUG_APP"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<activity
android:name="com.omid.epoll.mobile.Poll"
android:launchMode="singleInstance"
android:label="@string/title_activity_poll"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
</activity>