본문 바로가기
Development/Android

Uri 세팅방법.

by Sonagiya 2014. 2. 12.
728x90
반응형

// Basic Uri set

// example

// http://foo.com/someservlet?param1=foo&param2=bar

Uri uri = new Uri.Builder()

    .scheme("http")

    .authority("foo.com")

    .path("someservlet")

    .appendQueryParameter("param1", "foo")

    .appendQueryParameter("param2", "bar")

    .build();

반응형

댓글