S Scantech Well-Known Member Licensed User Longtime User Aug 30, 2019 #1 I save 3 files to File.DirInternal. When i uninstall the app and reinstall it with B4A, 2 of those files are deleted and 1 of them is still present. Why is it behaving this way? SpeedLimiter.txt is the one not deleted Code: Sub Service_Create StateManager.LoadStateTrip StateManager.LoadStateMaintenance StateManager.LoadStateSpeedLimiter End Sub Code: Sub LoadStateTrip Try If File.Exists(File.DirInternal, "Trip.txt") = True Then Log("FILE Exist Trip.txt") Code: Sub LoadStateMaintenance Try If File.Exists(File.DirInternal, "Maintenance.txt") = True Then Log("File Exist Maintenance.txt") Code: Sub LoadStateSpeedLimiter Try If File.Exists(File.DirInternal, "SpeedLimiter.txt") Then Log("File Exist SpeedLimitier.txt") Last edited: Aug 30, 2019
I save 3 files to File.DirInternal. When i uninstall the app and reinstall it with B4A, 2 of those files are deleted and 1 of them is still present. Why is it behaving this way? SpeedLimiter.txt is the one not deleted Code: Sub Service_Create StateManager.LoadStateTrip StateManager.LoadStateMaintenance StateManager.LoadStateSpeedLimiter End Sub Code: Sub LoadStateTrip Try If File.Exists(File.DirInternal, "Trip.txt") = True Then Log("FILE Exist Trip.txt") Code: Sub LoadStateMaintenance Try If File.Exists(File.DirInternal, "Maintenance.txt") = True Then Log("File Exist Maintenance.txt") Code: Sub LoadStateSpeedLimiter Try If File.Exists(File.DirInternal, "SpeedLimiter.txt") Then Log("File Exist SpeedLimitier.txt")
Erel B4X founder Staff member Licensed User Longtime User Sep 1, 2019 #2 Try this: https://www.b4x.com/android/forum/threads/solved-db-phantom.104576/#post-655319 Upvote 0