Hello,
I have a problem with "Activity_PermissionResult" :
if i write this in Activity_Create :
when i reach "Wait For", the program jump instantly to "Activity_Resume" and so, my variable StoragePermission was never set.
How can i stop the program for waiting the user response ?
I have the same question with :
it's annoying because right after getting permission to write in external storage, I have to create a directory and copy a file into it, what is done in Activity_Create.
Thanks for the person who save my journey !
I have a problem with "Activity_PermissionResult" :
if i write this in Activity_Create :
B4X:
Dim rp As RuntimePermissions
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
StoragePermission=Result 'Global variable
How can i stop the program for waiting the user response ?
I have the same question with :
B4X:
MES.GetPermission
Wait For MES_StorageAvailable
StoragePermission=MES.HasPermission
Thanks for the person who save my journey !