android-intent-chooser

Allow user to select camera or gallery for image

半城伤御伤魂 提交于 2019-11-26 03:16:09
问题 What I\'m trying to do seems very simple, but after a few days of searching I can\'t quite figure it out. I have an application that allows the user to select multiple(up to 5) images. I\'m using an ImageView . When the user clicks on the ImageView , I\'d like to allow them the option to Select the image from the gallery, or Use the camera to capture an image. I started by using the ACTION_GET_CONTENT intent, and that works well for getting to the gallery. So then I tried using the ACTION