S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #1 When I first launch the application I create a file B4X: File.WriteMap(File.DirInternal, ProgName & ".ini", options) On a device with Android below 14, this file could be deleted when clearing the cache and application data. Now it doesn't work. How to delete this file?
When I first launch the application I create a file B4X: File.WriteMap(File.DirInternal, ProgName & ".ini", options) On a device with Android below 14, this file could be deleted when clearing the cache and application data. Now it doesn't work. How to delete this file?
Solution DonManfred Jul 17, 2024 Sergey_New said: What should users do? Click to expand... Add this to your manifesteditor and try again. B4X: SetApplicationAttribute(android:allowBackup, "false")
Sergey_New said: What should users do? Click to expand... Add this to your manifesteditor and try again. B4X: SetApplicationAttribute(android:allowBackup, "false")
DonManfred Expert Licensed User Longtime User Jul 17, 2024 #2 Sergey_New said: Now it doesn't work. Click to expand... Do you get any Error? Which? Upvote 0
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #3 DonManfred said: Do you get any Error? Click to expand... No. I check after clearing the application data and deleting it B4X: If File.Exists(File.DirInternal, ProgName & ".ini")Then ReadIni Else File.WriteMap(File.DirInternal, ProgName & ".ini", options) ReadIni End If The file continues to exist. Upvote 0
DonManfred said: Do you get any Error? Click to expand... No. I check after clearing the application data and deleting it B4X: If File.Exists(File.DirInternal, ProgName & ".ini")Then ReadIni Else File.WriteMap(File.DirInternal, ProgName & ".ini", options) ReadIni End If The file continues to exist.
DonManfred Expert Licensed User Longtime User Jul 17, 2024 #4 Sergey_New said: and deleting it Click to expand... WHERE? There is no delete in your code!? Sergey_New said: The file continues to exist. Click to expand... Delete it Upvote 0
Sergey_New said: and deleting it Click to expand... WHERE? There is no delete in your code!? Sergey_New said: The file continues to exist. Click to expand... Delete it
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #6 DonManfred said: WHERE? There is no delete in your code!? Click to expand... I clear the data and delete the application itself. Upvote 0
DonManfred said: WHERE? There is no delete in your code!? Click to expand... I clear the data and delete the application itself.
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #7 DonManfred said: Maybe Android autobackup? Click to expand... What should users do? Upvote 0
DonManfred Expert Licensed User Longtime User Jul 17, 2024 #8 Sergey_New said: What should users do? Click to expand... Search the forum. I remember there was a similar question in the past. I don´t know the answer. Upvote 0
Sergey_New said: What should users do? Click to expand... Search the forum. I remember there was a similar question in the past. I don´t know the answer.
DonManfred Expert Licensed User Longtime User Jul 17, 2024 #9 Sergey_New said: What should users do? Click to expand... Add this to your manifesteditor and try again. B4X: SetApplicationAttribute(android:allowBackup, "false") Upvote 1 Solution
Sergey_New said: What should users do? Click to expand... Add this to your manifesteditor and try again. B4X: SetApplicationAttribute(android:allowBackup, "false")
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #10 DonManfred said: Search the forum. Click to expand... I searched the entire forum and did not find a similar question. Thank you! Upvote 0
DonManfred said: Search the forum. Click to expand... I searched the entire forum and did not find a similar question. Thank you!
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #11 DonManfred said: Add this to your manifesteditor and try again. Click to expand... I'll try and let you know. Upvote 0
DonManfred said: Add this to your manifesteditor and try again. Click to expand... I'll try and let you know.
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #12 DonManfred said: SetApplicationAttribute(android:allowBackup, "false") Click to expand... Thank you very much! This solved the problem. Upvote 0
DonManfred said: SetApplicationAttribute(android:allowBackup, "false") Click to expand... Thank you very much! This solved the problem.
DonManfred Expert Licensed User Longtime User Jul 17, 2024 #13 Sergey_New said: I searched the entire forum and did not find a similar question. Click to expand... Search for "Android Backup" I found the solution within 1 minute. Upvote 0
Sergey_New said: I searched the entire forum and did not find a similar question. Click to expand... Search for "Android Backup" I found the solution within 1 minute.
S Sergey_New Well-Known Member Licensed User Longtime User Jul 17, 2024 #14 DonManfred said: I found the solution within 1 minute. Click to expand... When using Google Translate it's not so simple ( Upvote 0
DonManfred said: I found the solution within 1 minute. Click to expand... When using Google Translate it's not so simple (