Usually easier to use an Overlay rather than overriding MapView methods: http://osdir.com/ml/Android-Developers/2010-06/msg01242.html
Steve On Mon, Jul 12, 2010 at 6:09 AM, Mark Murphy <[email protected]>wrote: > On Mon, Jul 12, 2010 at 8:49 AM, drill <[email protected]> wrote: > > thanks mark, but I still have some trouble. > > You mean to put the super-call into the MapClass, right? > > But I dont know what to put in as arguments for that call. Here would > > be my code: > > > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > MapView m = getMap(); > > super.onTouchEvent(???); > > No. You call super.onTouchEvent() if you are overriding an > onTouchEvent() method. I based that recommendation on: > > " I overwrote the onTouchMethod of the actual > MapView and so all functionallity is gone (also I'm not able to do > panning anymore)" > > If you override a method in MapView, and that changes the behavior of > MapView, consider chaining to the superclass implementation of the > method. > > Most of the projects in this directory demonstrate handling touch > events in map overlays: > > http://github.com/commonsguy/cw-advandroid/tree/master/Maps/ > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android App Developer Books: http://commonsware.com/books > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

