Im pretty sure the issue is thanks to my phone, a couple of my friends have tried the app and they can open the video gallery just fine but when i test it on my Google Pixel XL the "photos" gallery will pop up.
I have 2 buttons, one to open the Photos and the other one for Videos, when i try it on my phone (Google Pixel XL) i still get the photos library no matter where i press.
This is the code im using for the Photos and Videos buttons.
case IMAGE:
selectMediaFromGallery("image/*", SnapState.IMAGE.getRequestCode());
break;
case VIDEO:
selectMediaFromGallery("image/* video/*",
SnapState.VIDEO.getRequestCode());
I have also tried using this piece of code
Intent intent = new Intent(Intent.ACTION_PICK,
MediaStore.Video.Media.EXTERNAL_CONTENT_URI);
Any advice/help is highly appreciated. I have no idea what to do, maybe its just my phone and the way the gallery is built?
Thank you.