空指针,触摸两个地图上的事件

时间:2012-10-15 11:07:58

标签: touch

我遇到了一个大问题 我必须为我的地图查看转移到我触摸手机的点 我不使用ant Itemizedovelay,只是映射,覆盖一个touchevent 一个工作,但另一个给我这些logcat和只是crachdown

这真的很奇怪,有人知道或遇到这个问题吗?

-Thanks -Dennnis

这是logcat

> Uncaught handler: thread main exiting due to uncaught exception
java.lang.NullPointerException
$ThisMapOverlay1.onTouchEvent(Favoritepoint.java:222)
com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java:63)
com.google.android.maps.MapView.onTouchEvent(MapView.java:625)
android.view.View.dispatchTouchEvent(View.java:3709)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:852)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
    com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.    java:1659)
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
android.app.Activity.dispatchTouchEvent(Activity.java:2061)
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:  1643)
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:123)
android.app.ActivityThread.main(ActivityThread.java:4363)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:521)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
dalvik.system.NativeStart.main(Native Method)
threadid=7: reacting to signal 3
Wrote stack trace to '/data/anr/traces.txt'

0 个答案:

没有答案