Pregunta

I am working on an application in which I get GPS coordinates from the Google's GeoLocation services. I get these successfully but when I make following URL and pass this as text string in the SMS and try to send it to some user, it crashes. Following is the URL:

String text = "http://maps.google.com/maps?q=" + locationInfo.getLat() + "," + locationInfo.getLng()";
sendMessgae (text, num);

nothing is null, I have cross verified. when I pass simple text, the message is sent. but I have to send this location URL in the message. Please help me out of this. Any help is appreciated....:-)

¿Fue útil?

Solución

This will work for you:

String text = "http://maps.google.com/maps?q=0.00,1.0524";
sendMessgae (text, num);

Thanks.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top