get youtube Search URL - Android App

Android examples for App:Popular App

Description

get youtube Search URL

Demo Code


//package com.java2s;
import android.net.Uri;

public class Main {
    public static Uri getSearchURL(String title) {
        return Uri.parse("https://www.youtube.com/results").buildUpon()
                .appendPath("results")
                .appendQueryParameter("search_query", title + " trailer")
                .build();//from  w w  w .  ja  v  a 2s  .c o m
    }
}

Related Tutorials