关注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没有任何错误记录.....