[TIMOB-14382] Android: Enable Media.openPhotoGallery to select multiple media items instead of 1 at a time.
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-09-07T08:14:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.0.0 |
Components | Android |
Labels | android, media, openphotogallery |
Reporter | Joe Webster |
Assignee | Ashraf Abu |
Created | 2013-06-25T20:47:14.000+0000 |
Updated | 2016-09-07T08:14:28.000+0000 |
Description
In relation to this Q&A thread:
http://developer.appcelerator.com/question/153838/select-multiple-images-using-photo-gallery-picker-android-and-ios
Would it be possible to add a property/the functionality to Media.openPhotoGallery() to enable the selection of multiple media items? Maybe something like: itemLimit, which defaults to 1, but by setting to a greater value enables multiple selection functionality?
Hello Joe, Thank you for your suggestion. I will be sure to pass this along to engineering to review. Hopefully they will have time to implement this in a future release. If not, I'm afraid it will be up to someone to create a module for the this feature just as there is one for iOS. Regards, Carter
There is a community PR for the Android-side (https://github.com/appcelerator/titanium_mobile/pull/7967). On iOS, it currently does not allow the user to select multiple images from the image picker. So developers are advised to fetch the images manually and create a custom UI to display those (like Facebook and Whatsapp do).
New PR: https://github.com/appcelerator/titanium_mobile/pull/8081 for review
PR reviewed and merged.
Verified the feature. Works as expected on android, we can select multiple photos with property
allowMultiple
set to {true}}. On iOS please refer to Hans Knoechel's comment to implement a custom UI to select multiple photos. Closing. Environment: Appc Studio : 4.7.0.201607250649 Ti SDK : 6.0.0.v20160814220332 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.7 Appc CLI : 6.0.0-24 Node: 4.4.4 Nexus 6 - Android 6.0.1