2013-07-04 4 views
2

그래서 주요 활동에이 코드 줄이 있습니다. ortogl.mp4 파일은 내 sd 카드의 루트 폴더이며 안드로이드 2.1이 설치된 Sony Ericsson입니다. 앱이 설치되고 콘솔에 오류 1.0이 표시되지만 휴대 전화에 레이아웃은 표시되지만 동영상은 표시되지 않습니다 (파일을 재생할 수 없음). 힌트?동영상 플레이어 앱

VideoView v = (VideoView) findViewById(R.id.videoView1); 
    v.setVideoPath(getString(R.string._sdcard_ortodgl_3gp)); 
    v.setMediaController(new MediaController(this)); 
    v.start(); 
    v.requestFocus(); 

답변

0

그건 내가 그것을 해결 방법

File clip = new File(Environment.getExternalStorageDirectory(),"ortodgl.mp4"); 

    VideoView v = (VideoView) findViewById(R.id.videoView1); 
    v.setVideoPath(clip.getAbsolutePath()); 
    v.setMediaController(new MediaController(this)); 
    v.start(); 
    v.requestFocus(); 
관련 문제