On Fri, Feb 18, 2011 at 9:20 AM, Jake Colman <[email protected]> wrote:
> But doesn't the device always know where it is - assuming it has a > GPS, WiFi or network connection? > Having those features doesn't mean much if they're not actually used. If nothing on the device is requesting it's location, why would the device update it's location? getLastKnownLocation gets you exactly that - the location the device last knew it was at, which is the last time a location update was requested by some app. > Other than getLastKnownLocation() is my code a reasonable paradigm > for getting the best available location fix? > Not really. If I used my device's GPS in Tulsa, Oklahoma then stopped using it, took a flight back to Chicago and ran your app, your app would think I was still in Tulsa. Use requestLocationUpdates as Mark already said. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

