1 2 3 4 5 6 7 |
// your video id // for instance a video link: http://www.youtube.com/watch?v=Q9hF0j9G8_M String videoId = "Q9hF0j9G8_M"; Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + videoId)); intent.putExtra("VIDEO_ID", videoId); startActivity(intent); |