Open tplkn opened 9 years ago
It doesn't show anything at all? Or you are not able to choose images/videos? I haven't tested this out yet on lollipop, especially PICK_PICTURE_OR_VIDEO. Will check it out, and update this issue.
I'm not able to choose images, i can choose only videos
same here on lolipop actionbar title is "Choose Video" - even if PICK_PICTURE_OR_VIDEO is set. and only lets me select videos. only when using the built-in "photos" app. using another gallery app, works as expected.
possible solution - as found on SO. in https://github.com/coomar2841/image-chooser-library/blob/dev/image-chooser-library/src/main/java/com/kbeanie/imagechooser/api/MediaChooserManager.java#L180
you should use / instead of images/, videos/*
sample
if (Build.VERSION.SDK_INT < 19) {
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/* video/*");
startActivityForResult(photoPickerIntent,REQUEST_CODE_GALLERY_FILES);
} else {
Intent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);
photoPickerIntent.setType("*/*");
startActivityForResult(photoPickerIntent, REQUEST_CODE_GALLERY_FILES);
}
can you fix it? and relase a new version, not sure how to fork repo, and integrate into my gradle (pretty new to android)
still an issue in 1.6
Base code is
and
it works on 4.4, but doesn't work on lollipop.