Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created December 28, 2017 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/738f7b6085196c49e822fe09b9ebf7ad to your computer and use it in GitHub Desktop.
Save jezinka/738f7b6085196c49e822fe09b9ebf7ad to your computer and use it in GitHub Desktop.
private URL createUrl(String param) {
Uri builtUri = Uri.parse(ODJAZD_SERVER_URL).buildUpon().appendQueryParameter(PARAM_FROM, param).build();
URL url = null;
try {
url = new URL(builtUri.toString());
} catch (MalformedURLException e) {
e.printStackTrace();
}
return url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment