I'm doing a CRUD application on Android for the college project. I'm using a ImageButton
to select the image to save. The part of selecting the image and getting it stored is working well; but the photo in the view ImageButton
does not change.
startActivityForResult(Intent.createChooser(galeria, "Selecione a imagem"), 32);
btimg.setImageBitmap(imagemselecionada2);
So I realized this btimg.setImageBitmap
is running before the previous instruction select an image. How would I make it run soh after the startActivity
above finishes running?