Uri.Builder builder = new Uri.Builder().scheme("http")
                                    .authority("google.com:8080")
                                    .appendPath("this")
                                    .appendPath("is")
                                    .appendPath("user")
                                    .appendQueryParameter("name", "my_name");
String url = builder.build().toString();
// http://google.com%3A8080/this/is/user?name=my_name

try
{
  URLDecoder.decode(url, "utf-8");
  // http://google.com:8080/this/is/user?name=my_name
} catch (Exception e)
{
  e.printStackTrace();
}



StringBuilder를 자주 사용했었는데, 이런 것도 있네요