How to select multiple images from gallery from both android and iOS device?

5 views
Skip to first unread message

Sana Rajput

unread,
Jul 6, 2018, 8:59:50 AM7/6/18
to Nashville Xamarin Mobile Developers

Hello,
I am working on xamarin.forms app. I am creating the app for android and iOS. I need to open the gallery and select multiple images from gallery of devices. How I can do this in xamarin.forms that can work for both android and iOS?

Regards,
Sana Rajput

akshita...@gmail.com

unread,
Jul 7, 2018, 3:58:15 AM7/7/18
to Nashville Xamarin Mobile Developers
Hi Sana,

For android platform i use such type of code:
Intent intent = new Intent(Intent.ActionView, Android.Provider.MediaStore.Images.Media.ExternalContentUri);
this.StartActivityForResult(Intent.CreateChooser(intent, "Select a Photo"), 0);

It shows intent and you can select multiply images, then click import with application and your selected images will be as params in the mainactivity. If you still need help about coding related to Xamarin Development Services always be there for you to help. Ping me.
Reply all
Reply to author
Forward
0 new messages