My app was fine but recently needed to target SDK 26 and now my app is not working on new devices.
B4X:
Sub Process_Globals
'Get permission to write file
Private rp As RuntimePermissions
End Sub
Sub Activity_Create(FirstTime As Boolean)
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)