title: Can´t attach vector Image from drawable to Email on Android Studio
body: <p><strong>Hello. I´m having problems attaching vector Images from drawable to an email. Execution says Can´t Attach empty File.</strong></p>
  
  <pre><code>public void enviarCorreu(View view) {
  
  EditText t = findViewById(R.id.editText);
  String email = t.getText().toString();
  
  Drawable drawable = this.getResources().getDrawable(R.drawable.face);
  
  Intent intent = new Intent(Intent.ACTION_SEND);
  File f = new File(Uri.parse("android.resource://"+"com.example.m8_activitat2_tematicalliure/"+drawable).toString());
  
  intent.putExtra(Intent.EXTRA_EMAIL,new String[]{email});
  intent.setType("image/*");
  intent.putExtra(Intent.EXTRA_SUBJECT,email);
  intent.putExtra(Intent.EXTRA_TEXT,"Missatge enviat de la imatge");
  intent.putExtra(Intent.EXTRA_STREAM,Uri.fromFile(f));
  
  startActivity(Intent.createChooser(intent,"Enviant Correu ... "));
  }
  </code></pre>