Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

How can I format an SMS in order to send the GPS location? The recipient should be able to tap the text and open the coordinates with their favorite location software (e.g., Google Maps).

share|improve this question
add comment

2 Answers

As far as I know there is no standard for sending coordinates (such as a URI scheme like gps://[latitude],[longitude]), but you could use direct links to Google Maps. The format is https://maps.google.com/maps?q=[latitude],[longitude]. This enables most phones to create a link from the text, and the coordinates are easily available for copy/pasting to other apps as well.

share|improve this answer
    
Great answer, can't believe I didn't think of this! –  Peanut Apr 18 '13 at 9:49
add comment

You can encode your location in message by using LocationManager and SmsManager.

Check out these questions:

share|improve this answer
    
We generally avoid programming questions (and answers) on this site, as it is off-topic. –  Stephen Schrauger Nov 6 '13 at 13:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.