Android上的Ti.UI.WebView:未显示网页 [英] Ti.UI.WebView on Android: webpage is not being displayed
问题描述
我在我的应用程序中使用WebView.该WebView必须显示一个外部网页.在iOS上运行正常,但在Android上却出现白屏.
I am using a WebView in my app. This WebView must display an external webpage. It works fine on iOS, but on Android I get a white screen.
在控制台中,我看到以下警告:W/cr.BindingManager:无法调用确定的Visibility()-从未看到该pid的连接
In the console I see this warning: W/cr.BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid
我在WebView的load事件中添加了调试消息.当我调用getHtml方法时,我看到正在检索html.我不知道为什么不显示它?
I added debug messages inside the load event of the WebView. When I call the getHtml method there I see that the html is being retrieved. I have no idea why it is not being displayed?
我在stackoverflow上发现了一些类似的问题(与Titanium无关的问题),但是这个问题并没有为我提供解决方案.这是我发现的问题之一:
I find some similar issues on stackoverflow (issues that were not related with Titanium) but this issues did not point me to a solution. Here is one of the issues I've found:
Android Webview:无法调用确定的Visibility()-从未见过pid的连接
我希望有人能指出我正确的方向.在此先感谢!
I hope someone can point me in the right direction. Thanks in advance!!
推荐答案
我们已经解决了该问题
BindingManager:无法调用确定的Visibility()-从未见过pid的连接
BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid
和
libEGL:validate_display:255错误3008(EGL_BAD_DISPLAY)
libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
通过使用以下用于Android的WebView: http://gitt.io/component/de.marcelpociot.webviewfragment ,其中包含以下修补程序: https://jira.appcelerator.org/浏览/TIDOC-1548
by using the following WebView for android: http://gitt.io/component/de.marcelpociot.webviewfragment , which contains fixes for : https://jira.appcelerator.org/browse/TIDOC-1548
这篇关于Android上的Ti.UI.WebView:未显示网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!