android - MyLocationOverlay vs. LocationManager, and background Service -
i developing app. in share location friends (very google latitude). have service running daemon: should display received locations, , publish current user location each x seconds.
now, being quite new android , maps, bit confused mylocationoverlay , locationmanager.
while experimenting mapactivity, using mylocationoverlay seems handy display location. problem is, not sure taking location (net, gps,.. ?) , how updates it. moreover, suppose cannot use outside mapactivity, hence i'll need use locationmanager anyway.
the question is: using locationmanager background work , mylocationoverlay show location much? suppose better use locationmanager, right?
using mylocationoverlay in conjunction locationmanager common. mylocationoverlay determines location gps, wifi. can specify networks use location determination both mylocationoverlay , locationmanager.
the location stored both types of location finding (in other words, if have mylocationoverlay locationmanager, it's not going poll gps twice hard, going use last-received location both). last location received gps or wifi stored globally application determines location.
so answer question, no, using locationmanager mylocationoverlay not much.
Comments
Post a Comment