안드로이드 개발 질문/답변
(글 수 45,052)
File file = new File(contents);
try{
if( file.exists() ){
intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.parse(file.toString());
intent.setDataAndType(uri, "audio/*");
//startActivity(intent);
startActivity(Intent.createChooser(intent, "Media player"));
}else{
Util.toast(this, "The file does not exist on your phone anymore.");
}mp3 파일을 위와 같은 방식으로 재생을 시키면
기본 플레이어로 재생이 됩니다. ( 갤럭시s, 디자이어 테스트)
근데 앨범 아트도 안나오고 tag 도 모두 알수없음 이라는 화면으로 뜨고 음악만 재생이 됩니다.
근데 astro 파일 매니저로 mp3 파일을 실행시키면
정상적으로 나옵니다.
뭔가 다른 방법으로 파일을 실행시키나요?
정상적인 화면으로 실행이 되려면 추가 설정을 해야 하나요?
알려주세요ㅠ




아마 mp3 파일 정보가 정상적으로 DB에 들어가지 않은거 같은데요?
mediaScanner를 한번 해보시고 플레이어 호출해보세요.