Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Dec 28, 2017
Embed
What would you like to do?
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