开发者

Android: Mark images selected in gallery

开发者 https://www.devze.com 2023-03-05 16:18 出处:网络
I have an app that allows users to select images from the gallery (using an ACTION_PICK intent). I want to allow users to update their selection, by going back into the gallery and making changes. How

I have an app that allows users to select images from the gallery (using an ACTION_PICK intent). I want to allow users to update their selection, by going back into the gallery and making changes. However, when they go back to the gallery for a second/third/etc. time, I want their previous selections to be selected in the gallery..开发者_如何学C. Is there a way to do this?

Thanks for your time.


Do you mean the Gallery app or your own activity containing a gallery of images? If it's your own activity you can simply store the results of your ACTION_PICK into a shared preference. You can then go through you gallery and mark your items as selected based on those stored preferences. I hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消