问题
I recently tried to run my application on JellyBean
device and was surprised to see that the video player is not working and throws error:
??-?? ??:??:??.???: INFO/<unknown>(<unknown>): FATAL EXCEPTION: main
??-?? ??:??:??.???: INFO/<unknown>(<unknown>): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=/storage/sdcard0/Android/data/com.packagename.pkg/files/Movies/505c5bea-af51-4100-b95a-e2e87e6126c4.mp4 typ=video/* }
The same works fine on devices 2.2 till 4.0
The relevant code is
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(
Uri.parse(type,path), "video/*");
startActivity(intent);
Can somebody point what am I doing wrong.
来源:https://stackoverflow.com/questions/12931019/video-player-not-working-on-jelly-bean-device-android-content-activitynotfounde