How do I wait for an actual GPS location before sending an SMS? Directly using requestLocationUpdates sends me a message that returns 0.0 as latitude and longitude but the GPS hasn’t been able to get the correct coordinates yet.
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.
Use requestLocationUpdates with the GPS provider and give proper receiver.
Then in onLocationChanged method defined in your receiver check for provider to be GPS and also for the time of update.
Hope this helps.