关注 stackoverflow 讨论Android YouTube app Play Video Intent
我试过这段代码,但没有用
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));
我在控制台中收到此错误,但在 logcat 中没有输出:
[2012-11-20 17:49:21 - Youtube] Installation failed due to invalid URI!
[2012-11-20 17:49:21 - Youtube] Please check logcat output for more details.
[2012-11-20 17:49:22 - Youtube] Launch canceled!
Logcat没有任何错误记录......