See the App Inventor Extensions document about how to use an App Inventor Extension.
For questions about this extension or bug reports please start a new thread in the App Inventor Extensions forum. Thank you.
For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.
April 28th, 2017: Version 1: initial version
Required permissions: android.permission.READ_EXTERNAL_STORAGE
Note: This extension is a modified version of the Sharing component.
Set the default text of the sharing dialog. Default is 'Share using'.
Shares a message through any capable application installed on the phone by displaying a list of the available apps and allowing the user to choose one from the list. The selected app will open with the message inserted on it.
Shares both a file and a message through any capable application installed on the phone by displaying a list of available apps and allowing the user to choose one from the list. The selected app will open with the file and message inserted on it. Message also can be empty to send only a file without message. You can't share a file directly from the assets of your app.
Shares both a file and a message through Whatsapp without opening the app chooser. FileName or message also could be emtpy. You can't share a file directly from the assets of your app.
Tested successfully on Nexus 5X running Android 7.1.2, XORO-Tablet-Pad PAD 9720QR running Android 4.2.2, Samsung S5 running Android 6.01, Samsung S5 Neo running Android 6.01, Samsung S7 running Android 6.01 and Sony Xperia Z1 running Android 5.1.1. Thank you Marco for your tests.
Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!
or donate some mBTC to Address:
Thank you! Taifun
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.