2
I’m making a CRUD app on Android for the college project. I’m using a ImageButton
for the person to select the image to be saved. The part of selecting the image and storing it is working fine; but the photo in the view ImageButton
doesn’t change.
startActivityForResult(Intent.createChooser(galeria, "Selecione a imagem"), 32);
btimg.setImageBitmap(imagemselecionada2);
From what I understand this btimg.setImageBitmap
is running before the previous instruction select an image. I would like to have it run after the startActivity
above finish rotating?
Man, thanks for the answer. But unfortunately it didn’t work. I can’t set him to take this "btimg'' because every time I put him in the Oncreate() method he keeps showing some errors. And outside the Oncreate it can not catch the btimg object. : ( What to do?
– WitnessTruth