Hi guys,
I have old application that still runs OK in all smart phone with android version from 4.0, but this application behave strangely Oppo F1S.
The app min sdk version = 4, targeted sdk = 14;
On start, the application, if necessary, created an external folder with codes something like these
On Oppo F1S, app runs OK, but after users quit the app, sometime later, something in that phone deleted the folder /MyApp, so that when users login again to that app, all data reset to the initial stage again.
This never happen with other phones.
I suspect that the app in Oppo called security center responsible for this deletion, but
unfortunately, I don't have Oppo phone so could not investigated further.
Any hints how to prevent this ?
I have old application that still runs OK in all smart phone with android version from 4.0, but this application behave strangely Oppo F1S.
The app min sdk version = 4, targeted sdk = 14;
On start, the application, if necessary, created an external folder with codes something like these
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
If FirstTime Then
Try
If File.Exists(File.DirRootExternal & "/MyApp", "mydata.dat") = False Then
File.Copy(File.DirAssets, "mydata.dat", File.DirRootExternal & "/MyApp", "mydata.dat")
End If
Catch
Utility.Error("Unable to create file.")
End Try
End If
End Sub
On Oppo F1S, app runs OK, but after users quit the app, sometime later, something in that phone deleted the folder /MyApp, so that when users login again to that app, all data reset to the initial stage again.
This never happen with other phones.
I suspect that the app in Oppo called security center responsible for this deletion, but
unfortunately, I don't have Oppo phone so could not investigated further.
Any hints how to prevent this ?