开发者

Setting image in Alert dialog which comes from other activity

开发者 https://www.devze.com 2023-04-09 07:29 出处:网络
I have an开发者_如何学运维 alert dialog, in that i have a button and an image view, on click of button an activity is fired which contains a gallery in which there are pictures, when clicked on a pict

I have an开发者_如何学运维 alert dialog, in that i have a button and an image view, on click of button an activity is fired which contains a gallery in which there are pictures, when clicked on a picture i have to show it in that image view. please guide.


Use startActivityForResult to start the new Activity from the button and Override the onActivityResult method in your Activity where is placed your alert dialog.And depending on the result which your Activity returns, you can set the chosen image.

0

精彩评论

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