Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. final String URL = "http://www.sample.com/api/sendsms.php?username=name&password=pass&message=Your verification number is: " + randomNum +
  2. "&numbers=" + mobile + "&sender=app&return=json"
  3.  
  4. final String URL = "http://www.sample.com/api/sendsms.php?username=name&password=pass&message=Your%20verification%20number%20is:%20" + randomNum +
  5. "&numbers=" + mobile + "&sender=app&return=json";
  6.  
  7. String URL = "http://www.sample.com/api/sendsms.php?username=name&password=pass&message=Your verification number is: " + randomNum +"&numbers=" + mobile + "&sender=app&return=json"
  8. String newurl = URL.replaceAll(" ","%20");
  9.  
  10. final String URL = "http://www.sample.com/api/sendsms.php?username=name&password=pass&message=Your verification number is: " + randomNum +"&numbers=" + mobile + "&sender=app&return=json"
  11.  
  12. final String encodedURL = URLEncoder.encode(URL, "utf-8");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement