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.
精彩评论