Send a camera image in Mit App Inventor using whatsapp

Everything is working great but the file send to Whatsapp cannot open.

Any ideas.


it is not possible to send an image via the activity starter
you might want to use the Sharing extension and its WhatsApp method
There are also other extensions around, see also


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

This old post on StackOverflow seems to indicate sending an image using AS might be possible using this code … adapt the Java script as required.

Share Image on Whatsapp

Intent whatsappIntent = new Intent(android.content.Intent.ACTION_SEND);
whatsappIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file));//add image path
startActivity(Intent.createChooser(share, "Share image using"));

which uses a different set of instructions than you tried.

Of course, the above advice might not work either (see Taifun’s opinion). However the DataType should probably be image/* and not text/plain . I haven’t tried but YOU can.