I am using a uri builder for a news app. I've checked similar questions on stackoverflow and nothing I tried seems to be working. Here is my code :
Uri.Builder builder = new Uri.Builder()
.scheme("https")
.authority("content.guardianapis.com")
.appendPath("search")
.appendQueryParameter("tags", "contributor")
.appendQueryParameter("key", "dac25c9f-6360-4f05-b81d-689063b0a931");
String myUrl = builder.build().toString();