I have a image view where it show the image i took from camera
this is how i take the image :
    btnImg.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i, 0);
        }
    });
this is how i give the image to ImageView:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) 
{
    super.onActivityResult(requestCode, resultCode, data);
    Bitmap bitmap = (Bitmap) data.getExtras().get("data");
    img.setImageBitmap(bitmap);
}
and i want to get the image so that i can attach it in email
 
     
    
bitmap.toString()@NongthonbamTonthoi – Luis Fernando Scripcaru Dec 22 '17 at 18:01