android中的Html下拉列表

时间:2012-04-19 12:28:33

标签: android html webview

我在我的应用程序中使用PHP Web服务,我的应用程序中有下拉框,它来自PHP端。我正在使用Web视图打开下拉框。当我选择在三星Galaxy平板电脑下拉它打开并显示列表但当我尝试在手机2.2版本或2.1打开它崩溃应用程序并给我错误像:

04-19 17:57:52.822: ERROR/AndroidRuntime(551): Uncaught handler: thread main exiting due to uncaught exception
04-19 17:57:52.832: ERROR/AndroidRuntime(551): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@44c1bc50 is not valid; is your activity running?
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.view.ViewRoot.setView(ViewRoot.java:468)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.view.Window$LocalWindowManager.addView(Window.java:424)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.app.Dialog.show(Dialog.java:239)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.webkit.WebView$InvokeListBox.run(WebView.java:5793)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.os.Handler.handleCallback(Handler.java:587)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.os.Handler.dispatchMessage(Handler.java:92)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.os.Looper.loop(Looper.java:123)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at android.app.ActivityThread.main(ActivityThread.java:4363)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at java.lang.reflect.Method.invokeNative(Native Method)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at java.lang.reflect.Method.invoke(Method.java:521)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-19 17:57:52.832: ERROR/AndroidRuntime(551):     at dalvik.system.NativeStart.main(Native Method)

0 个答案:

没有答案