我的 android 应用程序中有一个按钮。当我按下它时,Android 视频播放器将打开并播放 vk 视频链接!例如链接: http: //vk.com/video_ext.php ?oid=3145131&id=159485516&hash=d821df23b7dc0b54&hd=1
我使用此代码,但这会在浏览器中打开。
Uri address = Uri.parse("http://vk.com/video_ext.php?oid=3145131&id=159485516&hash=d821df23b7dc0b54&hd=1");
Intent openlink = new Intent(Intent.ACTION_VIEW, address);
activity.startActivity(openlink);