12-16 12:53:08.021: W/KeyCharacterMap(601): No keyboard for id 0 12-16 12:53:08.021: W/KeyCharacterMap(601): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 12-16 12:53:20.641: W/dalvikvm(601): JNI WARNING: jarray 0x405b6248 points to non-array object (Ljava/lang/String;) 12-16 12:53:20.700: I/dalvikvm(601): "WebViewCoreThread" prio=5 tid=9 NATIVE 12-16 12:53:20.740: I/dalvikvm(601): | group="main" sCount=0 dsCount=0 obj=0x405210e0 self=0x2a3e28 12-16 12:53:20.740: I/dalvikvm(601): | sysTid=609 nice=0 sched=0/0 cgrp=default handle=2771288`enter code here` 12-16 12:53:20.740: I/dalvikvm(601): | schedstat=( 1241248392 1343902211 147 ) 12-16 12:53:20.759: I/dalvikvm(601): at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method) 12-16 12:53:20.769: I/dalvikvm(601): at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method) 12-16 12:53:20.769: I/dalvikvm(601): at android.webkit.BrowserFrame.loadUrl(BrowserFrame.java:246) 12-16 12:53:20.769: I/dalvikvm(601): at android.webkit.WebViewCore.loadUrl(WebViewCore.java:1570) 12-16 12:53:20.769: I/dalvikvm(601): at android.webkit.WebViewCore.access$1400(WebViewCore.java:53) 12-16 12:53:20.769: I/dalvikvm(601): at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:956) 12-16 12:53:20.790: I/dalvikvm(601): at android.os.Handler.dispatchMessage(Handler.java:99) 12-16 12:53:20.790: I/dalvikvm(601): at android.os.Looper.loop(Looper.java:130) 12-16 12:53:20.800: I/dalvikvm(601): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629) 12-16 12:53:20.809: I/dalvikvm(601): at java.lang.Thread.run(Thread.java:1019) 12-16 12:53:20.809: E/dalvikvm(601): VM aborting
我希望我的英语不是第一个借口。 Android 2.2设备,2.3 +设备,但在应用程序关闭后发出此错误并非没有问题
@Override
public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
mHandler.post(new Runnable() {
public void run() {
try {
a.loadUrl("javascript:(function() { "
+ "document.getElementById('-----').value='"
+"----"
+ "';})()");
a.loadUrl("javascript:(function() {document.getElementById('-----').value='"
+ "------"+ "';})()");
//At this point fails and shuts down after a short period of time continue to work
} catch (Exception e) {
// Log.e("pagefinis>>>", e.toString());
}
}
});
}
感谢您的帮助......
如果没有计算
a.loadUrl ("javascript: window.HHtml.HtmlGonder"
+ "(Document.getElementsByTagName ('html') [0]. InnerHTML );");
如何解决这个问题,错误是由于satırıdan?
答案 0 :(得分:2)
这是模拟器的问题,而不是您的代码,因为某些GPS功能仅在Google 14 API(反向地理编码等)中受支持,同样这也适用于某些模拟器
答案 1 :(得分:0)
我不做javascript,但基本上你的webview中的一个javascript变量返回null或非数组值。
你也永远不会检查:
document.getElementById('-----')
(如果不存在该怎么办?)
您可以忽略日志中有关键盘的警告,这是标准输出。