I want to know the accuracy for the every fired proximity alert. Is there any way to get that information? can I use locationManager.getLastKnownLocation()? Is there any way to tell the system not to fire alerts if the accuracy is bad?
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.
Every update called on your
LocationListeneris passed aLocationobject for the new event. This object has methods likegetAccuracy()that you can use to obtain that information.LocationManager.requestLocationUpdates(), only allows you to control the frequency of updates based on time between or distance between each update. It does not allow you to control getting updates from the manager based on accuracy; you will need to use the information from the update to decide whether or not to keep each report.