我使用圖庫從手機中選擇視頻和圖像並將它們加載到應用程序。 我使用代碼:視頻無法在android中選擇
Intent photoPickerIntent = null;
if (Build.VERSION.SDK_INT < 19) {
photoPickerIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
photoPickerIntent.setType("image/* video/*");
} else {
photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);
photoPickerIntent.setType("image/* video/*");
}
一切正常,但是當我在內部存儲/ DCIM去,我可以選擇僅適用於圖像。視頻文件是灰色的,我不能選擇它們。有任何想法嗎?
你沒有得到的視頻,如果使用SDK小於19 – Ibrahim
我有這個問題在Android 5.0.1 – edi233