compartir imagen con whatsapp en android
Tengo una imagen en la carpeta de activos y necesito compartirla con la aplicación de WhatsApp
Probé este código, me sigue dando error al compartir, intente nuevamente. ¿Qué pasa?
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/*");
share.setPackage("com.whatsapp");
// share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File("file:///assets/epic/adv.png")));
share.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///assets/epic/adv.png"));
this.startActivity(Intent.createChooser(share, "share_via"));