如何启动Youtube应用程序打开频道? [英] How to launch Youtube application to open a channel?
本文介绍了如何启动Youtube应用程序打开频道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的应用程序访问youtube来打开频道.我一直在寻找解决方案,但是我只是找到了如何打开/流式传输视频的方法:
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);
但是直接打开频道呢?
非常感谢您.
推荐答案
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(urlStr));
startActivity(intent);
如果您使用YouTube频道的网址,例如: http://www.youtube.com/user/JustinBieberVEVO
if you use the url of a youtube channel such as: http://www.youtube.com/user/JustinBieberVEVO
这应该使您可以选择打开youtube到给定的频道.
this should give you the option to open youtube to the given channel.
希望这会有所帮助!
这篇关于如何启动Youtube应用程序打开频道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文