Language/Java
Youtube 연결 intent
TechNote.kr
2015. 5. 23. 22:10
728x90
StringBuilder sb = new StringBuilder("vnd.youtube:");
sb.append("YoutubeID");
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(sb.toString())));
예를 들어 http://www.youtube.com/watch?v=fKEsNnjERS0&list=ELecLU4iOJN_8&index=1&feature=plpp_video 가 주소일 경우
YoutubeID는 fKEsNnjERS0 이다.
728x90