True.   I'm only looking for a coarse location in my app and assume that the
phone has been on long enough to find the cell towers.

On Mon, Oct 19, 2009 at 11:20 AM, Mark Murphy <[email protected]>wrote:

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


-- 
Writing code is one of few things
that teaches me I don't know everything.

http://www.fuligin.com

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

Reply via email to