code: def check_permission(cls, fine=True):
          
          app = AndroidApplication.instance()
          permission = (cls.ACCESS_FINE_PERMISSION
                        if fine else cls.ACCESS_COARSE_PERMISSION)
          return app.has_permission(permission)
docs: Returns a future that returns a boolean indicating if permission 
          is currently granted or denied. If permission is denied, you can 
          request using `LocationManager.request_permission()` below.