Share - Error 2001: "The File could not be found on your device"

540 views
Skip to first unread message

Александр Тымчук

unread,
Mar 28, 2015, 9:06:52 AM3/28/15
to mitappinv...@googlegroups.com
Hi!
I ran into the following problem:
when i'm trying to share existing file the application return error "Error 2001: The File ... could not be found on your device"
Here is example

































I also tried path without "/" (into inner memory) but have same error


Taifun

unread,
Mar 28, 2015, 9:45:06 AM3/28/15
to mitappinv...@googlegroups.com
for the Sharing component, you have to provide the full path to the file, which is
file:///mnt/sdcard/savefile.txt
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.                

Message has been deleted
Message has been deleted

Александр Тымчук

unread,
Mar 28, 2015, 11:25:08 AM3/28/15
to mitappinv...@googlegroups.com
Yes but it will works with one same type of devices
On my phone path is /storage/sdcard0/savefile.txt
On my tablet path is /mnt/sdcard/savefile.txt
and full path not working on both devices.

Taifun

unread,
Mar 28, 2015, 3:23:57 PM3/28/15
to mitappinv...@googlegroups.com
the path file:///mnt/sdcard is a generic path and should work with both of your devices
Taifun

Александр Тымчук

unread,
Mar 28, 2015, 3:30:04 PM3/28/15
to mitappinv...@googlegroups.com
Ohhh thx!! =))
You are my Savior! ;)
Reply all
Reply to author
Forward
0 new messages