app.DeleteFile failed (Invalid URI: )

99 views
Skip to first unread message

Bubu Daba

unread,
Apr 1, 2021, 9:25:29 PM4/1/21
to DroidScript
When i delete a file using the app or the ide console i receive this
WARNING: App.DeleteFile(/storage/0403-0201/Music/...) failed! (Invalid URI: )  

Alan Hendry

unread,
Apr 2, 2021, 9:46:39 AM4/2/21
to DroidScript
Hi,
Is this Android 10 (with scoped storage)?
Not sure if you need premium to access the external SD card.
Does FileExists(/storage/0403-0201/Music/...) return true?
Regards, ah

Bubu Daba

unread,
Apr 2, 2021, 2:24:15 PM4/2/21
to DroidScript
It's android 6. In docs it doesn't show as premium feature.
FileExists return true. it's a song that i play.

Steve Garman

unread,
Apr 3, 2021, 4:23:39 AM4/3/21
to DroidScript
I agree that the docs aren't clear on this subject but making changes to files on the external sd card such as writing or deleting is a Premium only feature, requiring the use of chPermission and getPermission

More details are available for premium users in the sample "Sdcard access" near the bottom of the list of samples
Reply all
Reply to author
Forward
0 new messages