androidurlsms

Url link breaking up in text message Android Application


i have a url link am trying to send to my user, but the link breaks up cause. it sends the full link but about half of it is not underlined as a link. this is what am trying to send

 String locateUrl="http://maps.google.com?q="+latitude()+","+longitude();

first it does not recognize this ?q= as a link and it just breaks up from there, have checked other answers and tried them but seems not to be working


Solution

  • Just solved this by putting "/" before ?q= thereby making sure the link doesn't break full link will then be

    String locateUrl="http://maps.google.com/?q="+latitude()+","+longitude();