diff --git a/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java b/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java index f21e757..a58550f 100644 --- a/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java +++ b/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java @@ -208,7 +208,12 @@ public void onClick(DialogInterface dialog, int which) { private void selectMediaFromGallery(String mimeType, int resultCode) { Intent intent = new Intent(Intent.ACTION_PICK); - intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, mimeType); + if(mimeType=="video/*"){ + intent.setDataAndType(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, mimeType); + } + else{ + intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, mimeType); + } startActivityForResult(intent, resultCode); }