Hi Harold This is exactly what I'm doing in MySpeed - http://l6n.org/android/myspeed.shtml There's a MyLocationOverlay which shows the map and a service which does other stuff. Originally I had the other stuff in the MyLocationOverlay, but later decided to move it all out into it's own service and keep the MyLocationOveraly simpler. I don't think you can or want to do what you asked in your last question.
Regards Neil On Oct 1, 2:34 pm, Harold <haroldkoe...@googlemail.com> wrote: > Hi, > im playing around a little with the Maps-Api and the MyLocationOverlay > which draws a point on the map > on your current location. At first i was doing this by hand with a > normal Overlay and a Service with a LocationListener. Then i found out > that MyLocationOverlay is implementing this all natively. > > Now what if i still wanted to use a LocationListener in a Service. For > example i want to have a general-purpose Service for Location- > Listening that could also be used for the map, but i also want to use > the MyLocationOverlay-Class for showing my position. > > Does it make sense or would the Listeners interfere each other? Is it > possible that MyLocationOverlay should use the LocationService and not > the build-in one? > > Greetings, > Harold --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---