Code example for Uri.Builder

Methods: build, scheme

0
	private String keyword;
	public VideoSearch(String keyword){
		this.setKeyword(keyword);
	} 
	public Uri getRequestUri(){
		Builder b = new Builder();
		b.scheme("http")
			.authority("gdata.youtube.com")
			.path("feeds/api/videos")
			.appendQueryParameter("vq", keyword);
		return b.build();
	} 
	public String getRequestUriString(){
		return getRequestUri().toString();
	} 
	public VideosData execute() throws IOException{ 
		InputStream input = null;
		VideosData data = null;
		VideosDataParser parser = new VideosDataParser();
		 
Connect your IDE to all the code out there  Get Codota for Java