network

Uri.Builder 사용방법

treejsh 2015. 2. 11. 17:02
 
Url : http://treejsh.tistory.com/aaa/bbb?param=happy#section

Uri.Builder uri = new Uri.Builder()
                .scheme("http")
                .authority("treejsh.tistory.com")
                .appendPath("aaa")
                .appendPath("bbb")
                .appendQueryParameter("param", "happy")
                .fragment("section");

String url = uri.build().toString();