i have completed a project successfully, the problem was when the user hit simultaneously 2 or more buttons the app get crashes, also when app fetches data from service that time when user hits other widget it get force close.
the error log such as..
12-13 12:42:03.763: W/webcore(576): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
12-13 12:44:52.284: E/AndroidRuntime(665): at android.os.Looper.loop(Looper.java:137)
12-13 12:44:52.284: E/AndroidRuntime(665): at android.app.ActivityThread.main(ActivityThread.java:4340)
12-13 12:44:52.284: E/AndroidRuntime(665): at java.lang.reflect.Method.invokeNative(Native Method)
12-13 12:44:52.284: E/AndroidRuntime(665): at java.lang.reflect.Method.invoke(Method.java:511)
12-13 12:44:52.284: E/AndroidRuntime(665): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
12-13 12:44:52.284: E/AndroidRuntime(665): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
is there any possible way to put the request queue in android code?
how i handle force close in android app?
thank you.
if you don’t want to make more change in your code then just use a flag to check is server request is currently executing or completed as:
your get data method for making data request to server