Intent YouTube Search/Filter Option

august8music

Member
Licensed User
Longtime User
Hi, I'm trying to open up the search option in youtube
and have also done a search.
I was able to figure this out with the web browser, but seeing the web browser doesn't play the videos then I needed a new way.
I have Intent to Open Youtube, but I can't seem to have it auto filter/search for a video.
Basically I have a list of Artist and Song names and want to be able to search for them on Youtube.

Any Thoughts?

Something like this?

Dim Intent1 As Intent
Intent1.Initialize(, "")
Intent1.SetComponent("com.google.android.youtube.QueryActivity")
Intent1.PutExtra("query", "SearchString")
StartActivity(Intent1)
 
Last edited:

NJDude

Expert
Licensed User
Longtime User
This should work:
B4X:
Dim Intent1 As Intent

Intent1.Initialize(Intent1.ACTION_VIEW, "")
Intent1.SetComponent("com.google.android.youtube/.ResultsActivity")
Intent1.PutExtra("query", "funny")

StartActivity(Intent1)
 
Upvote 0
Top