
@OverrIDeprotected voID onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); webVIEw.saveState(outState);}@OverrIDeprotected voID onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); webVIEw.restoreState(savedInstanceState);} 但是,由于我在此网页浏览中播放视频,因此该视频无法继续播放.相反,它会加载视频,就好像它还没有开始播放一样.如何旋转屏幕但继续播放视频,就像什么都没发生一样?
谢谢
解决方法 在manifest.xml中添加它upto API level 12 <activity androID:label="@string/app_name" androID:name="Activity" androID:configChanges="keyboardHIDden|orIEntation"> </activity>after apl level 12,<activity androID:label="@string/app_name" androID:name="Activity" androID:configChanges="keyboardHIDden|orIEntation|screenSize"> </activity>总结
以上是内存溢出为你收集整理的android – 不要在旋转时重新加载webview视频全部内容,希望文章能够帮你解决android – 不要在旋转时重新加载webview视频所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)