문제

Intent i = new Intent(Intent.ACTION_VIEW);
Uri uriforintent = Uri.parse(uri);
i.setDataAndType(uriforintent, "video/*");
//startActivity(i);
startActivityForResult(i, 0);
.

비디오는 startactivity () 이라고 부르는 경우 삼성 주식 Vid Player 의 로컬 파일 재생 가능 입니다. stateactivityforresult () 에서만 재생하지 못합니다.

오류가있는 오류가 기록됩니다.

06-02 19:07:12.742: E/MediaPlayer(23993): Error (1,-2147483648)
06-02 19:07:12.742: E/MoviePlaybackService(23993): TouchPlayer :: mErrorListener = 1<<<<<<<<<<<<
06-02 19:07:12.742: D/MoviePlayer(23993): onSvcNotification - action : 104
06-02 19:07:12.742: E/MoviePlayer(23993): createErrorDialog(action, intent). action = 104
.

samsung 스톡 비디오 플레이어 와 같은 문제에 직면 해 있습니까?

도움이 되었습니까?

해결책

ACTION_VIEWstartActivityForResult()와 함께 사용하도록 설계되지 않았으며 실제로 결과를 얻지 못하므로 startActivity()를 사용하십시오.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top