I am trying to create an app that saves the user’s media selections from a Media Picker to be reused and avoid having to re-pick the items . Is there a way to do this with the Media Picker or any example code for this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only way to do this is to save the media selection in the app’s sandbox i.e. Documents directory for re-use. Because, you can’t access the media without user intervention i.e. you’ve to present media picker each time whenever you wanna pick something from the gallery. You can use something like this to save an image in app’s doc directory:
And to retrieve the images:
Hope it’ll be helpful.