【问题标题】:How to make an Implicit Intent so that it opens a specific video in the youtube app? [duplicate]如何制作隐式意图以在 youtube 应用程序中打开特定视频? [复制]
【发布时间】:2018-09-17 08:40:37
【问题描述】:

基本上我正在制作一个简单的应用程序,我需要知道当您单击按钮时,youtube 应用程序中的视频如何打开并可以观看。我找不到任何我能理解的代码。谢谢您的帮助,我们将不胜感激。

【问题讨论】:

    标签: java android android-intent youtube


    【解决方案1】:

    即使我投了反对票,我还是会通过一次谷歌搜索给你答案。

    简单的一行代码:startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));

    它不能在模拟器上运行,只能在你的手机上运行。 source

    【讨论】:

      猜你喜欢
      • 2015-03-20
      • 1970-01-01
      • 2012-01-08
      • 2017-06-01
      • 2012-06-22
      • 2019-01-16
      • 1970-01-01
      • 2012-03-15
      • 2014-06-20
      相关资源
      最近更新 更多