My app(target sdk = 25) had using android.permission.WRITE_SETTINGS permission. First time launch the app, it will prompt up ask user to enable the permission but after restart the device, it will ask again. Is it normal?
Every time reboot the device, is it need to enable permission again?
Every time reboot the device, is it need to enable permission again?
B4X:
Sub CanWrite As Boolean
Dim p As Phone
If p.SdkVersion < 23 Then Return True
Dim ctxt As JavaObject
ctxt.InitializeContext
Dim jo As JavaObject
Return jo.InitializeStatic("android.provider.Settings.System").RunMethod("canWrite", Array(ctxt))
End Sub