Android Utililty Methods URL Create

List of utility methods to do URL Create

Description

The list of methods to do URL Create are organized into topic(s).

Method

StringbuildUrlParameterString( List> parameters)
Shorthand for building a parameter string used in the url of GET requests;
return buildParameterString(parameters, "&", false);
StringappendParameter(String url, String name, String value)
append Parameter
if (name == null || value == null) {
    return url;
value = value.trim();
if (value.length() == 0) {
    return url;
try {
...
StringappendParameter(String url, String name, String value)
append Parameter
if (name == null || value == null) {
    return url;
value = value.trim();
if (value.length() == 0) {
    return url;
value = htmlEncode(value);
...
StringgeoCoderUrlBuilder(double lat, double lng)
Builds a url for google api for the given parameters
String googleurl = "https://maps.google.com/maps/api/geocode/json?key=AIzaSyACYVxd_d-49UnhqibCI6F9f7b5Gw1qTSc&";
StringBuilder sbuilder = new StringBuilder();
sbuilder.append(googleurl);
sbuilder.append("latlng=" + lat + "," + lng);
sbuilder.append("&sensor=true");
String url = sbuilder.toString();
return url;
StringmakeUrl(String inBaseUrl, String inUrl)
make Url
if (null == inUrl || inUrl.length() == 0) {
    return null;
if (null == inBaseUrl || inBaseUrl.length() == 0) {
    return null;
if (uriHasSchema(inUrl) || inUrl.startsWith("/")) {
    return inUrl;
...