android 保存webview状态,android – 如何保存和恢复Webview状态?
当我使用备份&恢复Webview状态,我收到此消息:x地址处的网页可能是临时性的,或者可能已永久移动到新的网址.@Overridepublic void onSaveInstanceState(Bundle savedInstanceState) {super.onSaveInstanceState(savedInstanceState);webViewShowPoll.saveState
当我使用备份&恢复Webview状态,我收到此消息:
x地址处的网页可能是临时性的,或者可能已永久移动到新的网址.
@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
android:name="com.omid.epoll.mobile.Poll"
android:launchMode="singleInstance"
android:label="@string/title_activity_poll"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
更多推荐
所有评论(0)