简体   繁体   中英

intent call gallery to select image in android

The view to pick the picture is launched and I can select an image. But when it goes back to my app, the onActivityResult is never called (neither in the ActivityGroup nor in the Activity).

I have checked several questions just in case I was missing a receiver and I found this Pick an image from the Gallery . But all the flags seem to be off.

You must start intent to pick the picture by calling startActivityForResult intead of startActivty.

If you are doing that, then may be you could share some code to see what the problem is.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM