Hi,

Compare the timestamp from getLastKnownLocation with clock timestamp,
if greater than a few seconds ( maybe up to 15 seconds ) then display
(post) a Toast message.

This may not work well if clock is not auto synchronzed from network
provider.

Regards

On May 12, 8:56 am, mcvetyty <[email protected]> wrote:
> Hello -
>
> I am creating an app that uses GPS coodinates. Can anyone help me with
> the following?
>
> 1) I want to ensure I am using a current 'fixed' location and not a
> previously stored one, so I am trying to avoid using
> getLastKnownLocation, but cannot seem to figure out the alternate to
> this?
>
> 2) What is the best way to display a "please wait" message or
> something along those lines while the GPS service is attempting to get
> a fix (and ideally periodically allow the user to cancel out)?
>
> Thanks!
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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