Reputation:
I want to create a android search application that can be used to search a video from youtube for given word.
how do I do that. please someone give me a tutorial link. Thanks
Upvotes: 2
Views: 2740
Reputation: 132982
use this API for Searching a Video on Youtube
https://gdata.youtube.com/feeds/api/videos?q=india
where q is word you want to search related videos
for more detail see YouTube APIs
Upvotes: 3
Reputation: 56925
Please try the below code .
Intent intent = new Intent(Intent.ACTION_SEARCH);
intent.setPackage("com.google.android.youtube");
intent.putExtra("query", "Android");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
Upvotes: 6