Dear all,

I don't really have an issue but I am just wondering what is the best
way to get a simple GPS position (no update required).
I just want to have the current position when my app is launched

By reading the documentation it seems really simple and this is what I
am doing :

locMgr.getLastKnownLocation(locMgr.getBestProvider(new Criteria(),
true));

But I wonder if this is the right way of doing.
Almost sometimes I could not get any Location (null returned) I don't
know why, maybe the fix sent by telnet is limited in the time...

Thanks for your advises !

C.



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