[android-beginners] MyLocationOverlay vs. Service with Locationlistener

2009-10-01 Thread Harold

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
-~--~~~~--~~--~--~---



[android-beginners] backgroundservice

2009-08-26 Thread Harold

Hi,
i want to develop an application which checks periodically for new
data on a server over a http-connection.
Should i do this in a Thread or is it better to do this in a service?
The checking should also continue when the user is going back to the
Android-Main-Menu, that means the user is exiting the Activity, and
when he starts the Activity again it can work with the collected data.
As far as i read, is this feature only possible with remote-Services,
so that i must use Inter-Process-Communication?

With kind regards,
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
-~--~~~~--~~--~--~---