Create a MyLocationOverlay subclass, and override dispatchTap().
On Nov 8, 1:33 pm, Stu <[EMAIL PROTECTED]> wrote:
> Hi there.
>
> I'm having trouble handling a tap on my current location in a
> MyLocationOverlay. There seem to be functions specifically for this,
> but I can't seem to handle it correctly.
>
> My class look like this:
>
> public class MyApp extends MapActivity implements LocationListener {
>
> and when I try to override the dispatchTap() method I get told that it
> must override a superclass. I'm assuming it's something to do with the
> fact that my class has no link with MyLocationOverlay. I tried adding
> it to the list of implements, but MyLocationOverlay is appanrently not
> an interface, or something.
>
> Can anyone tell me how I should go about handling a click on the
> current location using a MyLocationOverlay, or not using one if it has
> to be done a different way?
>
> Thanks and regards,
> Stuart.
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---