Is there a possible way to detect the new location very fast using GPS provider?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GPS is often slow – that’s just the way it is. But there are several things you can do in order to speed up the experience for the user:
Start looking for a location as soon as the app starts – don’t wait until they get to an activity that needs a location
Use the network provider, which is often much faster
Use the passive provider. i.e. receive location updates that have been acquired by other apps on the device
Use the Last Known location – this is stored for a while, and if it exists, gives you a location instantly (though it may be a little old)
If suitable in your app’s context, store a location yourself in prefs
This article by Google’s Reto Meier is a great place to start – look at the related links for sample code and more detail
http://blog.radioactiveyak.com/2011/06/how-to-build-location-based-apps-that.html