Handle tap on MyLocationOverlay current GPS position

by Stu » Sun, 09 Nov 2008 17:15:03 GMT


Sponsored Links
 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.

--~--~---------~--~----~------------~-------~--~----~



Handle tap on MyLocationOverlay current GPS position

by Guillaume Perrot » Mon, 10 Nov 2008 18:31:50 GMT


 Create a MyLocationOverlay subclass, and override dispatchTap().



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Https connection to webservice

Hello guys,

I'm trying to connect to a webservice through my android application.
In which order should I add these certs to my app's keystore?

1 Subject CN=*.heroku.com, O="Heroku, Inc.", L=San Francisco,
ST=California, C=US
   Issuer  CN=DigiCert High Assurance CA-3, OU=www.digicert.com,
O=DigiCert Inc, C=US

 2 Subject CN=DigiCert High Assurance CA-3, OU=www.digicert.com,
O=DigiCert Inc, C=US
   Issuer  CN=DigiCert High Assurance EV Root CA, OU=www.digicert.com,
O=DigiCert Inc, C=US

 3 Subject CN=DigiCert High Assurance EV Root CA, OU=www.digicert.com,
O=DigiCert Inc, C=US
   Issuer  CN=Entrust.net Secure Server Certification Authority,
OU=(c) 1999 Entrust.net Limited,   OU=www.entrust.net/CPS incorp. by
ref. (limits liab.), O=Entrust.net, C=US

-- 

2. Button code

How to crate button & also called without using xml.

-- 

3. How to prevent my application from being killed?

4. CheckedTextView and filtering of list not working well together

5. How is your app selling on the Amazon Appstore?

6. why can't draw text with OpenGL!!!

7. BitmapSize exceeds VM budget out of memory error