0

How to create an android app which can receive successive location link as text message and can show it on a map automatically?

an sms app for geolocation.

28th Dec 2017, 1:40 AM
Cedric Singa
2 Antworten
0
Interesting. Let me try to give some orientation based on personal experience: Let's say the Server receives the SMS sent by one or several clients. To send location SMS, the client app will need Internet connection to collect GPS locations, say at given interval of time or whenever there is movement. The client app will therefore need INTERNET, ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION permissions, in addition to SEND_SMS, WRITE_SMS permissions. There could be other needed permissions. Finally, and importantly, the client app must not be short of credits (airtime) to be able to send SMS messages. My recommendation is: why send SMS while already connected to Internet to fetch GPS locations? The client app would simply need to POST the location coordinates/info to server through some Web API (using HttpClient). This ways, you would need only the first 3 permissions. If you still need to use SMS, the sever (in this case would an SMS modem, or a USB dongle or simply a phone would have to a mechanism for automatically read and parse the sms. you will need to be able to distinguish your app SMS messages from other random or unsolicited messages that could be sent by the operator or third parties (whether accidentally or not, even if the phone number is undisclosed). If the recipient side (server) is a phone, then you will need it to be a service that can run on a separate thread and stay "alive" in the background even when your server phone is asleep.
29th Dec 2017, 8:18 AM
Zinc
Zinc - avatar
0
Hi
11th Mar 2021, 10:27 AM
Laveena Dsouza
Laveena Dsouza - avatar