I want to access from my application to youtube to open a channel. I've searched for a solution but i just found how to open/stream a video :
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:VIDEO_ID"));
startActivity(i);
But what about opening directly a channel?
Thank you very much.
I know this answer is late and such but i wanted to share this anyway. This worked for me:
vnd.youtube://user/channel/channel_id
This opens the channel directly in the youtube app. Without asking the user.
Update
Didn't include any code because i was using React Native, and maybe people is looking for native code. Anyway here you go:
But, i think in native code it should be something like this:
I'm not too familiarized with native code so it may be wrong, but should work like a guide.
if you use the url of a youtube channel such as: http://www.youtube.com/user/JustinBieberVEVO
this should give you the option to open youtube to the given channel.
hope this helps!