Share intent imageview

0

Well I'm trying to make a Share of an image with intent , however this image is already set with a id .

How do I make this share ? Here is my code that is giving error:

// Metodo do botão
public void Share (View view){

//Ter Acesso a imaem atraves do 
ImageView ivCar = (ImageView) findViewById(R.id.iv_car);

    Intent sharingIntent =  new  Intent ( Intent .ACTION_SEND);
Uri screenshotUri = Uri.parse(MediaStore.Images. Media . EXTERNAL_CONTENT_URI +  "/"  + ivCar );
    sharingIntent . setType("image/jpeg");
sharingIntent . putExtra(Intent.EXTRA_STREAM, screenshotUri);

startActivity(Intent.createChooser ( sharingIntent ,  "Share imagem usando " ));
    
asked by anonymous 06.04.2016 / 05:56

0 answers