I have a problem which I've noticed since updating for runtime permissions so I presume it's related.
I'm using:
to create folders. Then download jpg files to them. When new files are downloaded the old ones are deleted and the file names re-used, e.g. file0.jpg will have an image, file0.jpg is deleted and a different image is downloaded as file0.jpg.
However on reloading file0.jpg the app continues to show the original image, even though that image (should) no longer exist. I don't think it's the app. Opening the file with 'Photos' first shows the incorrect image, then the correct one, then again the incorrect one on closing. I have a video of this but can't upload it.
Any ideas as to what might cause this? Or how to 'permanently' delete the file so that it's contents can't be wrongly displayed?
I'm using:
B4X:
Dim ADir As String = ""
......
ADir = rp.GetSafeDirDefaultExternal("")
......
rp.GetSafeDirDefaultExternal("Receiver0")
......
etc.
However on reloading file0.jpg the app continues to show the original image, even though that image (should) no longer exist. I don't think it's the app. Opening the file with 'Photos' first shows the incorrect image, then the correct one, then again the incorrect one on closing. I have a video of this but can't upload it.
Any ideas as to what might cause this? Or how to 'permanently' delete the file so that it's contents can't be wrongly displayed?