Android Question how to check permission in starter service?

Discussion in 'Android Questions' started by Scantech, Aug 2, 2019.

  1. Scantech

    Scantech Well-Known Member Licensed User

    I need to check Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION) but won't work in starter service. Is there a way to implement the check from starter service?
  2. Scantech

    Scantech Well-Known Member Licensed User

    If rp.Check(rp.PERMISSION_ACCESS_FINE_LOCATION) = True Then is the answer
  3. DonManfred

    DonManfred Expert Licensed User

    No. You can not use any UI in Services. Calling the request can only be done from an activity.
  4. Erel

    Erel Administrator Staff Member Licensed User

    You can call rp.Check from a service and you cannot call rp.CheckAndRequest.

    The main usage of rp.Check is to allow checking permissions in services.
    Scantech likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice