I'm pretty new in the android world. I am wondering how can I get the position of my friends and display it on a map. More precisely, I don't know how to share the position of my friends and I. Maybe have to use a server or something like that ?
Is it hard to code ?
Thx,
Arnaud
Location Sharing availabilityLocation Sharing works even when Location History is turned off.
The answer is yes, it's possible to track mobile phones even if location services are turned off. Turning off the location service on your phone can help conceal your location. This is important if you don't want third parties knowing where you are or being able to track your movement.
You can control what location information your phone can use. Open your phone's Settings app. Under "Personal," tap Location access. At the top of the screen, turn Access to my location on or off.
Whenever you want to let someone know where you are, just open the side menu or tap the blue dot that represents where you are. Tap “Share location” and then select who to share with and how long to share—and you're done!
You can look at existing open source solutions.
Here is a server side source code: https://github.com/tananaev/traccar/
And here is Android app: https://github.com/tananaev/traccar-client-android
Communication is done over TCP connection.
$PGID,123456789012345*0F\r\n where 123456789012345 is a unique device identifier, in this case IMEI
$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A
Step-1 Create android app which will share required details like position and name etc and will request to the server for required information
Step-2 Create a server which will store the details sent by the user and sent necessary information to the appropriate client
Approach
When your friend will come online the app should send(installed in your friends device) the detail to the server whenever you want the information your app should request to the server for necessary information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With