android - webviewglue native破坏 View

标签 android

我在我的应用程序的一个页面上打开浏览器,打开浏览器的代码是我用过很多次的代码,但在这种特殊情况下,浏览器永远不会打开。

我在 logcat 的末尾不断收到以下消息:

09-27 15:41:16.624: INFO/ActivityManager(1644): Starting: Intent { act=android.intent.action.VIEW dat=http://www.nyt.com cmp=com.android.browser/.BrowserActivity } from pid 9332
09-27 15:41:16.634: WARN/ActivityManager(1644): Duplicate finish request for HistoryRecord{4097ec10 com.test/com.test.MainScreen}
09-27 15:41:16.684: VERBOSE/http(4606): 15326478 main RequestQueue.resetWifiProxy, wifiProxy is null
09-27 15:41:16.684: ERROR/http(4606): RequestQueue.setProxyConfig, wifiProxy is null
09-27 15:41:16.784: DEBUG/webviewglue(4606): nativeDestroy view: 0x562af8

这是一个带有 native 库的大型应用程序的一部分。

这是打开浏览器的 fragment :

String afterSubmitAction = "http://www.nyt.com";

Uri uri = Uri.parse(afterSubmitAction);
startActivity(new Intent(Intent.ACTION_VIEW, uri));
finish();

最佳答案

您的代码在我这边运行良好。所以请检查您的互联网连接。如果您使用 wifi 来检查导致此问题的原因,请在 Edge 上运行您的代码。

关于android - webviewglue native破坏 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7575516/

相关文章:

Android 自动填充框架 : update password

android - 使用 SAP WSDL WebService 时出现 XmlPullParserException

java - 检测可点击项目上的 throw 手势

java - 我怎样才能让我的线程进入休眠状态

android - 使用 SwitchPreference 设置更改 android 首选项图标

android - 在 viewpager 中添加 openstreetmap

Android Sensor App 安装后获取额外空间

像 camscanner 这样的 Android 裁剪图像

Android ADT 21.0 警告 : Implicitly using the default locale

java - Android Google Maps API,防止在屏幕方向更改时重新加载/重绘 map