Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Select Multiple Images Using Photo Gallery Picker (Android and iOS)

$
0
0

At the moment I am using Ti.Media.openPhotoGallery to select an individual image from the device photo gallery:

Ti.Media.openPhotoGallery({
    autoHide: true,
    mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
    success: function(e) {
        if (e.mediaType === Ti.Media.MEDIA_TYPE_PHOTO) {
            // Process selected photo
        }
    },
    cancel: function() {},
    error: function(err) { Ti.API.error(err); }
});
I would like to be able to select multiple images within the same open gallery image picker. This doesn't seem possible using openPhotoGallery.

http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Media-method-openPhotoGallery http://docs.appcelerator.com/titanium/latest/#!/api/PhotoGalleryOptionsType

With Android (well on a 2.3 handset anyway), when the image picker is open, pressing the menu key toggles on checkboxes next to each image item in the gallery, allowing me to select multiple items. But, I don't seem to be able to do anything when they are selected. The picker will only select and return to the success: call-back function if a single image is selected.

In the iPhone emulator I can only select a single image.

As it stands, my current solution is going to be:

iOS: https://marketplace.appcelerator.com/apps/3161/overview?548823641

Android: ???

Is there something I'm missing/an alternative - or any ideas what to do regarding an Android solution?

Cheers!


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>