Android Question RuntimePermissions how?

a6000000

Member
Licensed User
RuntimePermissions

in RuntimePermissions Example


RuntimePermissions for gmap

B4X:
Sub MapFragment1_Ready
   gmap = MapFragment1.GetMap
   rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
End Sub

Sub Activity_PermissionResult (Permission As String, Result As Boolean)
   If Permission = rp.PERMISSION_ACCESS_FINE_LOCATION Then
     gmap.MyLocationEnabled = Result
   End If
End Sub


how , if we have B4XPages , not gmap :
B4X:
      gmap.MyLocationEnabled = Result

      gmap = MapFragment1.GetMap
try

B4XPagesMy2.WRITE_EXTERNAL_STORAGE_Enabled

:cool: ??
 
Top