SharingTools Extension [Free & Open Source]

There seems to be issues with the paths → listFilePath:

So there is no path that works with listFilePath.
You should fix that.

Btw, in Kodular only this path (full absolute path) works:
file:///storage/emulated/0/foto.jpg

You have already got a topic about this in the Kodular forum. Please only ask in the forum of the builder you are using.

This works on my Samsung S7E Android 8 but the only 3rd party app I have that will deliver multiple files is WhatsApp

Having also tried sharing via native email, Gmail, GoogleDrive, Dropbox they either throw an error message or silently fail to deliver the attachments.

The SharingTools.ShareFile (single item) works OK with these various apps.

JIm

I checked it on 4 of my test devices (Android 8, 9, 11). It doesn't work on any of them.
This is definitely a bug with the extension.

One of these two paths should work on all Android versions in any case:

/storage/emulated/0/foto.jpg
file:///storage/emulated/0/foto.jpg

It would also be possible for the extension to use a relative path:

/foto.jpg

But even in this case it doesn't work.

  1. Have you tried sending multiple files other than just that one?
  2. I see the path that you add is just like this :
    /storage/emulated/0/foto.jpg
    Are you sure your photo is on that path?
    I think your photos should be in a separate folder for example:
    /storage/emulated/0/Pictures/foto.jpg
  3. I am sure my code is not wrong because the code I use is very secure,
    if you want to see I will show you

yeah it's because the problem that I have explained here :
https://community.appinventor.mit.edu/t/sharingtools-extension-free/23992/24?u=salman_dev

I doubt the files will be attached. Show a screenshot of it.

And I just want to say that I will keep updating this extension because I also have the latest ideas so I probably will add a new function that is very useful so you don't have to worry about all of my extensions I will keep updating, if i have time. :grin:

Yes, this works with Kodular (with the full path: file:///storage/...)

Yes.

1 Like

Hmm, but can my extensions work on ai2?
I'm sure it can because before I published this extension I tested it up to 23X on AI2 and the results worked :thinking:

@Anke as requested, attached screenshot from my laptop of 2 x photos taken on my phone and exported to WhatsApp using SharingTools.ShareMultipleFile

Check it for the 24 times (with Companion, because the app didn't ask for WRITE permission):
shareMutipleFiles2.aia (749.1 KB)
The images are copied from the assets to the paths in external storage:

so if you have tried with that permission and succeeded?

Okay, so have you tried images that are not copied from assets?

Strange, because it doesn't work on my test devices, also not on 2 Samsung devices (Galaxy Note3 / Note8, Android 5 and 9). I've now tested it on 5 devices. So as I said there is something wrong.

Maybe the problem is that you copied the image from the asset. :thinking:

Yes, doesn't work too.
"Unable to attach file"

1 Like

:question:

1 Like

You should try to send the image but it is taken from your gallery
or send a file but taken from your storage.
because I believe the problem is you use the taifun extension to copy the image from asset

:question:

As I said it works with the full (absolute) path:
file:///storage/emulated/0/foto.jpg
with Kodular,

but NOT with AI2.

Btw, as I also said before, there is no problem with filePath:

grafik