I was wondering about the following scenario: I have an application
that periodically needs to do some stuff, and at first I found that
starting it as an alarm service was a neat way conserving resources
AND being sure that the service would execute. However, my service
also needs to know the location of the device, and I found that using
getLastKnownLocation does not suffice as the location tends to be
drastically outdated. I then tried adding a location listener, and
requested location updates as frequently as possible, but then it
could still take minutes before any location event was fired. So, now
I have it running as a standard background service but I really don't
like that approach.

Is it possible to force a location fix within limited given that the
circumstances enable acquiring a fix at all? Again,
getLastKnownLocation does not suffice.

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