Good day! It is necessary to add a button to delete the imageview (picture). I do not know how to do it. Thx for help =3
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK && requestCode == 1 && null != data) {
decodeUri(data.getData());
}
if (requestCode == CAMERA_REQUEST && resultCode == Activity.RESULT_OK) {
ImageView image = (ImageView)findViewById(R.id.photka);
Bitmap photo = (Bitmap) data.getExtras().get("data");
image.setImageBitmap(photo);
}
}
https://i.stack.imgur.com/CAlDG.png https://i.stack.imgur.com/CAlDG.png