I have a program that requires a single GPS fix when a service is started. This is needed to tell an on location change when the last location is. How to get 1 single GPS fix in an android service?
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.
Ive found a way! all i did was defined a boolean
StartUpthen made this true in oncreate thenif (StartUp = true){this will work if your location is done with distance moved.DistanceMoved=1000000f;
StartUp=false;}