안드로이드 개발 질문/답변
(글 수 45,052)
인터넷에서 여기 저기 뒤져서 구현은 했습니다만,
일부 단말 (갤S)에서 동영상 플레이어가 구동되질 않네요...
ActivityNotFoundException 가 발생하는 걸로 보입니다....
고수님들의 한수 부탁드립니다..
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file:///"+path), "video/mpeg");
startActivity(intent);
Uri uri = Uri.parse("file://" + fullpath);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
이렇게 하시면 된답니다.