如何启动Youtube应用程序以打开频道?

and*_*nnn 8 youtube android youtube-api youtube-channels

我想从我的应用程序访问youtube以打开一个频道.我搜索了一个解决方案但我刚刚找到了如何打开/流式传输视频:

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:VIDEO_ID"));
startActivity(i);
Run Code Online (Sandbox Code Playgroud)

但直接打开一个频道怎么样?

非常感谢你.

Byt*_*eMe 21

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(urlStr));
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

如果你使用youtube频道的网址,例如:http://www.youtube.com/user/JustinBieberVEVO

这应该为您提供打开youtube到给定频道的选项.

希望这可以帮助!

  • 我希望这个链接实际上并不是什么东西,而是一些东西,其他什么东西.那好吧.感谢您的意向提示. (12认同)