Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_CAMERA)
Wait For Activity_PermissionResult(Permission As String, Result As Boolean)
If Result Then
Log("permiso de camera")
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult(Permission As String, Result As Boolean)
If Result Then
Log("permiso de storage")
TakePicture
Else
Log("No tiene permiso de storage")
End If
Else
Log("No tiene permiso de camara")
End If