App Inventor Extensions: Sharing | Pura Vida Apps

App Inventor Extensions


Sharing Extension

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

Description

Sharing extension.
Required permissions: android.permission.READ_EXTERNAL_STORAGE
Note: This extension is a modified version of the Sharing component.

Modifications:

Properties


Set the default text of the sharing dialog. Default is 'Share using'.

Methods


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.

Example App


Test

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.

Do you need help with your App Inventor project?

I can help you: for one hour I charge 25 USD.
Please contact me at info [at] puravidaapps [dot] com for details!
For questions about App Inventor, please use the App Inventor forum. Thank you.

Terms and Conditions

Download


If you find this example helpful and you are using it in one of your projects,
be nice and donate a small amount!

Donation amount:

or donate some mBTC to Bitcoin Address:
1Jd8kXLHu2Vkuhi15TWHiQm4uE9AGPYxi8
Bitcoin

Thank you! Taifun
 

Download TaifunSharing extension (aix file)
Download Sharing Test (aia file)
Back to top of page ...

Creative Commons License
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.


Home | Snippets | Tutorials | Extensions | News | Forums | Links | Search | Contact