Answer the question
In order to leave comments, you need to log in
How to get coordinates in Android?
Hello!
Task: periodically send the coordinates of the current location from the Android application to the server.
It seems trivial, I began to understand, I realized that:
1. GPS is slow, often turned off (on 6+ androids it can be turned off in 2 places);
2. You can take the last received location, but as I understand it, accuracy suffers from this;
3. Data can be received without GPS turned on, from WiFi or cell towers (but they are not always nearby).
All these methods have pros and cons, in theory it is necessary to combine all this.
I went further, started looking for ready-made libraries on the github, oddly enough, but I did not find powerful popular tools (maybe I was looking badly).
Moving on, stumbled upon PathSense, installed, but I did not find how to get lat long, without any paid google maps.
Tell me, how do you solve this problem? Are there ready-made libraries?
Thank you.
PS I tried to write myself, now it works like that, but I don't like the speed of determining coordinates, the need for gps, etc.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question