ThinkGeo.com    |     Documentation    |     Premium Support

[Xamarin Android] Problem with two activities with MapView

in the first activity i have a mapview and when i start a second activity, then i go back to first activity and click on the mapview. The application show a exception.

Object name: ‘Android.Views.GestureDetector’.
at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <7802aa64ad574c33adca332a3fa9706a>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <7802aa64ad574c33adca332a3fa9706a>:0
at Android.Views.GestureDetector.OnTouchEvent (Android.Views.MotionEvent ev) [0x00031] in <263adecfa58f4c449f1ff56156d886fd>:0
at zBQ=.mBU=.uRU= (System.Object sender, Android.Views.View+TouchEventArgs e) [0x0000c] in <43721f23d2294160a7f53a2d2413dd61>:0
at Android.Views.View+IOnTouchListenerImplementor.OnTouch (Android.Views.View v, Android.Views.MotionEvent e) [0x00014] in <263adecfa58f4c449f1ff56156d886fd>:0
at Android.Views.View+IOnTouchListenerInvoker.n_OnTouch_Landroid_view_View_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v, System.IntPtr native_e) [0x00017] in <263adecfa58f4c449f1ff56156d886fd>:0
at (wrapper dynamic-method) System.Object.67124f87-ecc1-4e0b-8dc2-8169748b0248(intptr,intptr,intptr,intptr)
at mono.android.view.View_OnTouchListenerImplementor.n_onTouch(Native Method)
at mono.android.view.View_OnTouchListenerImplementor.onTouch(View_OnTouchListenerImplementor.java:30)
at android.view.View.dispatchTouchEvent(View.java:12536)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3153)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2829)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2786)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:601)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1871)
at android.app.Activity.dispatchTouchEvent(Activity.java:3384)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:563)
at android.view.View.dispatchPointerEvent(View.java:12788)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5626)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5421)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4914)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4967)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4933)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5070)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4941)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5127)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4914)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4967)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4933)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4941)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4914)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7682)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7622)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7583)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7793)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:197)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
at android.app.ActivityThread.main(ActivityThread.java:6949)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Hi Marcelo_Moura,

We hadn’t met the same exception before, and from your exception call stack, you can see it’s not from our code.

Today we tested some of our Android project, but hadn’t reproduce it. So could you please build a simple sample to reproduce it? Our developer can research it based on your sample.

Regards,

Ethan