android 中与 webcoreglue 相关的奇怪日志条目

发布于 2024-12-10 11:32:44 字数 418 浏览 0 评论 0原文

自 2 天以来,当我在设备上运行我的应用程序时,出现以下错误, 但它在模拟器上运行良好 谁能帮我解决这个错误?

 E  3762    webcoreglue the real object has been deleted

 E  3762    webcoreglue the real object has been deleted

 E  3762    webcoreglue the real object has been deleted

 E  3762    webcoreglue the real object has been deleted

当我通过我的应用程序登录 facebook 登录 webview 时会发生这种情况。

登录对话框出现十分之一秒然后消失 有

任何建议吗? 谢谢 ..

Since 2 days , I get the following error when I run my app on the device,
however it runs fine on the emulator
can anyone help me in solving this error?

 E  3762    webcoreglue the real object has been deleted

 E  3762    webcoreglue the real object has been deleted

 E  3762    webcoreglue the real object has been deleted

 E  3762    webcoreglue the real object has been deleted

it occurs when I am logging in to facebook login webview through my app.

the login dialog appears for a tenth of a second and then disappears

any suggestions?
thanks ..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故人的歌 2024-12-17 11:32:44

就我而言,webcoreglue“真实对象已被删除”是由缺少“webView.destroy();”引起的。多次调用该活动后,我收到了错误消息。

@Override    
public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.help);

   String fileName = this.getIntent().getStringExtra("filename");
   webView = (WebView) findViewById(R.id.webview);
   webView.loadUrl(fileName); //file:///...html
}


@Override
public void onDestroy() {
   super.onDestroy();
   webView.destroy(); //<-- !!!
}

In my case the webcoreglue "the real object has been deleted" was caused by a missing "webView.destroy();". After calling the activity multiple times i got the error message.

@Override    
public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.help);

   String fileName = this.getIntent().getStringExtra("filename");
   webView = (WebView) findViewById(R.id.webview);
   webView.loadUrl(fileName); //file:///...html
}


@Override
public void onDestroy() {
   super.onDestroy();
   webView.destroy(); //<-- !!!
}
氛圍 2024-12-17 11:32:44

这通常与方向变化(也包括活动变化)有关。通常,您可以通过将以下内容添加到主要活动的清单中来解决此问题:

android:configChanges=”keyboard|keyboardHidden|orientation”

This is generally related to orientation change (also activity changes). You can generally get around this by adding the following to your manifest for your main activity:

android:configChanges=”keyboard|keyboardHidden|orientation”
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文