I back up and import files to and from an SD card on my tablet. Thanks to help and a sample program from e.g. DonManfred now also works everything.
However, there are problems when deleting files on the SD card. I read a list of all files from the SD card and then I want to delete them. I do the deletion with the command
The Storage.Root.Name also corresponds to the name of the SD card. The file name is stored correctly in Temp.
As a result of OK, I always get False. The file is also not deleted. No error message is issued either.
I cannot find an example for deleting files from an SD card on the Internet.
What am I doing wrong? Is the delete command the right one? Who might have a sample program for deleting a file from SD card and can set this.
Greetings strupp01
However, there are problems when deleting files on the SD card. I read a list of all files from the SD card and then I want to delete them. I do the deletion with the command
B4X:
OK = File.Delete ("/ storage /" & Storage.Root.Name & "/ Sicherheit_Mein_Haushaltsbuch", Temp.trim)
The Storage.Root.Name also corresponds to the name of the SD card. The file name is stored correctly in Temp.
As a result of OK, I always get False. The file is also not deleted. No error message is issued either.
I cannot find an example for deleting files from an SD card on the Internet.
What am I doing wrong? Is the delete command the right one? Who might have a sample program for deleting a file from SD card and can set this.
Greetings strupp01