سلام من کدهای زیر رو در برنامه قرار دادم اما از کاربر دسترسی درخواست نمیکنه.
کدهای منیفست رو هم اضافه کردم
روی اندروید 9 و 10 تست کردم
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("main")
If Not(rr.Check(rr.PERMISSION_READ_SMS)) Then
Wait For Msgbox_Result (Result As Int)
rr.CheckAndRequest(rr.PERMISSION_READ_SMS)
Wait For activity_PermissionResult (Permission As String, havePermission As Boolean)
If havePermission = False Then
Return
End If
End If
If Not(rr.Check(rr.PERMISSION_RECEIVE_SMS)) Then
Wait For Msgbox_Result (Result As Int)
rr.CheckAndRequest(rr.PERMISSION_RECEIVE_SMS)
Wait For activity_PermissionResult (Permission As String, havePermission As Boolean)
If havePermission = False Then
Return
End If
End If
If Not(rr.Check(rr.PERMISSION_READ_CONTACTS)) Then
Wait For Msgbox_Result (Result As Int)
rr.CheckAndRequest(rr.PERMISSION_READ_CONTACTS)
Wait For activity_PermissionResult (Permission As String, havePermission As Boolean)
If havePermission = False Then
Return
End If
End If
If Not(rr.Check(rr.PERMISSION_READ_CALL_LOG)) Then
Wait For Msgbox_Result (Result As Int)
rr.CheckAndRequest(rr.PERMISSION_READ_CALL_LOG)
Wait For activity_PermissionResult (Permission As String, havePermission As Boolean)
If havePermission = False Then
Return
End If
End If
End Sub
سوال
mostafaHD 44
سلام من کدهای زیر رو در برنامه قرار دادم اما از کاربر دسترسی درخواست نمیکنه.
کدهای منیفست رو هم اضافه کردم
روی اندروید 9 و 10 تست کردم
Sub Activity_Create(FirstTime As Boolean) 'Do not forget to load the layout file created with the visual designer. For example: Activity.LoadLayout("main") If Not(rr.Check(rr.PERMISSION_READ_SMS)) Then Wait For Msgbox_Result (Result As Int) rr.CheckAndRequest(rr.PERMISSION_READ_SMS) Wait For activity_PermissionResult (Permission As String, havePermission As Boolean) If havePermission = False Then Return End If End If If Not(rr.Check(rr.PERMISSION_RECEIVE_SMS)) Then Wait For Msgbox_Result (Result As Int) rr.CheckAndRequest(rr.PERMISSION_RECEIVE_SMS) Wait For activity_PermissionResult (Permission As String, havePermission As Boolean) If havePermission = False Then Return End If End If If Not(rr.Check(rr.PERMISSION_READ_CONTACTS)) Then Wait For Msgbox_Result (Result As Int) rr.CheckAndRequest(rr.PERMISSION_READ_CONTACTS) Wait For activity_PermissionResult (Permission As String, havePermission As Boolean) If havePermission = False Then Return End If End If If Not(rr.Check(rr.PERMISSION_READ_CALL_LOG)) Then Wait For Msgbox_Result (Result As Int) rr.CheckAndRequest(rr.PERMISSION_READ_CALL_LOG) Wait For activity_PermissionResult (Permission As String, havePermission As Boolean) If havePermission = False Then Return End If End If End Sub
لینک ارسال
به اشتراک گذاری در سایت های دیگر
2 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.