GLBasic forum

Main forum => GLBasic - en => Topic started by: msx on 2016-Aug-16

Title: [SOLVED] KILLFILE works on Android?
Post by: msx on 2016-Aug-16
I'm trying to delete a file on Android and I can not, I tried using SETCURRENTDIR and PLATFORMINFO$("APPDATA") but the file is still there. DoesFileExist confirms this.

There is a bug in this command?
Title: Re: KILLFILE works on Android?
Post by: nabz32 on 2016-Aug-16
Dont know if this will help.
Maybe try it with an absolute path in the killfile command instand of setcurrentdir.
Title: Re: KILLFILE works on Android?
Post by: msx on 2016-Aug-16
also tried unsuccessfully
Title: Re: KILLFILE works on Android?
Post by: msx on 2016-Aug-17
Nobody?
Title: Re: KILLFILE works on Android?
Post by: spacefractal on 2016-Aug-17
I'm currently have focus on steam. So it's can take week or such. It's not a major issue in normal use.
Title: Re: KILLFILE works on Android?
Post by: msx on 2016-Aug-17
you're right. I just wanted to know if it has happened to someone and as fix.
Title: Re: KILLFILE works on Android?
Post by: msx on 2016-Aug-18
Mystery solved, you can not delete a file from the Media folder, if it is packaged in the APK. I guess it will be a matter of file attributes.
Title: Re: [SOLVED] KILLFILE works on Android?
Post by: spacefractal on 2016-Aug-18
Ahhh, that normal. On Android, its auto copy media files from apk to memory, which is required before Glbasic can use it. You should not touch and try to delete etc. with Android Extras, it's might also auto delete it after use when another file is used to save memory.

KILLFILE might just not work with files in Media. Here I'm can no nothing at all.