Hi all,

I made a post talking about the exception I had with the Itemized
overlay when there are no items in. The workaround was to check and
remove the ItemizedOverlay when it's empty.

But another problem occurs when I attempt to remove it and invalidate
the MapView directly after, I have sometimes the following exception
that shoots my app (the sometimes is probably due to multitasking,
even though I thought only one thread handles the view).

Note that this was noticed on the emulator, I must check if it happens
on the phone also (maybe there were updates). And by the way? does the
emulator check for updates?

08-11 17:05:00.385: WARN/dalvikvm(1375): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
08-11 17:05:00.405: ERROR/AndroidRuntime(1375): Uncaught handler:
thread main exiting due to uncaught exception
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):
java.lang.ArrayIndexOutOfBoundsException
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.ItemizedOverlay.maskHelper
(ItemizedOverlay.java:562)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.ItemizedOverlay.setFocus(ItemizedOverlay.java:
365)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.ItemizedOverlay.focus(ItemizedOverlay.java:
539)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.ItemizedOverlay.onTap(ItemizedOverlay.java:
455)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.OverlayBundle.onTap(OverlayBundle.java:83)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.MapView$1.onSingleTapUp(MapView.java:346)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.GestureDetector.onTouchEvent(GestureDetector.java:503)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.google.android.maps.MapView.onTouchEvent(MapView.java:623)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.View.dispatchTouchEvent(View.java:3368)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1707)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1197)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.app.Activity.dispatchTouchEvent(Activity.java:1993)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1691)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.os.Handler.dispatchMessage(Handler.java:99)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.os.Looper.loop(Looper.java:123)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
java.lang.reflect.Method.invokeNative(Native Method)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
java.lang.reflect.Method.invoke(Method.java:521)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
08-11 17:05:00.584: ERROR/AndroidRuntime(1375):     at
dalvik.system.NativeStart.main(Native Method)

Best Regards,
Zied Hamdi
http://nextstreet.eu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to