How to share asset file?

i want to share .APK asset file From App
i want to create share button in app. when click share button i want to show all available sources to share.

i have tried this blocks but showing error 2001:the File file://Splash.png could not be found on your device.
share

1 Like

You can’t do it this way.
First you have to copy your file to internal device memory.
More info here -->
https://puravidaapps.com/file.php
https://puravidaapps.com/sharing.php

Of course you don’t have to use extensions if functions built-in in makeroid allows you to do the same things as in links I provided.

Regards,
BeeriaApps

3 Likes

i have tried like this but not working
i have uploded asset file in assets.
not%20copying%20file

1 Like

try to set path in input -->
//nameofyourfile.png

output path -->
/nameofyourclreatednewcatalog/nameofyourfile.png

in sharing part it looks fine -->
file:///mnt/sdcard/nameofyourclreatednewcatalog/nameofyourfile.png

For copying I use Taifun extension and it’s working as above.

Regards,
BeeriaApps

i have tried this blocks as you said but not working.
when clicked on share button Showing error file:///mnt/sdcard/MyApp/icon.png could not be found on your device
i have tested it on device by instaling.
i think share block working well but copy blocks are wrong please correct me.

not%20copying%20file2

1 Like

Dunno, maybe there is something wrong with file component. Try to use Taifun extension

1 Like

You right there is problem in that Copy Component.
Thanks for Correcting me.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.