-1

Hi I am trying create an app in android which can obtain the current location and send current location's url to my friend through SMS.

I created an app to get current location's longitude & latitude and send it to my friend throughSMS, I would like to know how to obtain current location's url, so that when they click on the message the map opens in google maps.

I would like to know how to obtain url using latitude & longitude or in any other way in android.

Chris
  • 6,105
  • 6
  • 38
  • 55

1 Answers1

2
http://maps.google.com/?q=<lat>,<lng>

Use the above format, pass your values of lat and lng to the above URL format.

Shivputra N
  • 688
  • 7
  • 17