Lokesh
Lokesh

Reputation: 1

Activity found to handle Intent

I am tring to invote internal media player of android from my activity. Seems there is some problem in menifest file .

Please look into this issue .

08-04 18:08:47.825: ERROR/AndroidRuntime(1386): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///sdcard/audiodata.wav }

Upvotes: 0

Views: 2566

Answers (1)

Hare-Krishna
Hare-Krishna

Reputation: 1425

This is for internal audio player:

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); 

Upvotes: 1

Related Questions