2010-08-04 2 views
0

내 활동에서 안드로이드의 내부 미디어 플레이어를 불러 들이고 있습니다. menifest 파일에 문제가있는 것 같습니다.Intent를 처리하는 활동이 발견되었습니다.

이 문제를 살펴보십시오.

08-04 18 : 08 : 47.825 : ERROR/AndroidRuntime (1386) : android.content.ActivityNotFoundException : Intent {act = android.intent.action.VIEW dat = file : /// sdcard를 처리 할 활동이 없습니다. /audiodata.wav}

답변

1

이 내부 오디오 플레이어입니다 :

Intent intent = new Intent(); 
intent.setAction(android.content.Intent.ACTION_VIEW); 
File file = new File("/sdcard/test0.mp3"); 
intent.setDataAndType(Uri.fromFile(file), MIME_AUDIO); 
_context.startActivity(intent); 
관련 문제