Q:

How to post data to my web server using mobile SMS without internet?

I am developing an android application in which the device's current location is posted to my Web API after every 3 seconds using internet. My web api is hosted on server. Without internet, location updates won't be posted to the server. 
What I want is that, when internet is not available on the mobile device,  want to send location using sms. 
I looked into twilio. But I couldn't find a good tutorial on how to use it in android and how to send sms to a URL.
How do I post data to my server using sms without internet?

A:

I found a solution to my problem. The internet connectivity problem can be solved in the following way. 
When internet is not available on your user's device, send an SMS which contains location coordinates and user name to a second mobile device in which internet is available. Then that second device will parse the incoming SMS, extract coordinates and username and will send it to the server.

