Open an image received by an online database

0

I retrieve the image from the database as follows:

btm = BitmapFactory.decodeByteArray(data, 0, data.length);
imgView.setImageBitmap(btm);

And then I put an action to click on the image to appear the image in the standard Android viewer.

imgView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent1 = new Intent(Intent.ACTION_VIEW);
                intent1.setDataAndType(**"Tenho que colocar algo aqui"**, "image/*");
                startActivity(intent1);
            }
        });

Or how could I after recovering the image put it to open in the gallery viewer.

    
asked by anonymous 17.10.2017 / 00:39

0 answers