Wayne Wenthin wrote: > LocationManager lm = (LocationManager) > getSystemService(Context.LOCATION_SERVICE); > lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, > 1000L,500.0f, this); > Location loc = lm.getLastKnownLocation(lm.getProviders(true).get(0));
Only if that third statement is executed significantly after the first two, since there might not be a fix available. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

