0

I am building a GoogleTV app that contains a WebView. If I change the device's language while the app is loaded, then the webView refreshes. This is a very jarring experience and totally unnecessary since my app only displays English.

How can I stop the webview from reloading?

4

1 回答 1

2

我不确定,但猜测这是因为您的应用程序由于更改区域设置而重新启动配置更改。

尝试通过添加来抑制此配置更改,看看是否有帮助。android:configChanges="locale"<activity>

于 2013-08-15T21:04:06.287 回答