S Scantech Well-Known Member Licensed User Longtime User Aug 2, 2019 #1 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?
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?
S Scantech Well-Known Member Licensed User Longtime User Aug 2, 2019 #2 If rp.Check(rp.PERMISSION_ACCESS_FINE_LOCATION) = True Then is the answer Upvote 0
DonManfred Expert Licensed User Longtime User Aug 2, 2019 #3 Scantech said: Is there a way to implement the check from starter service? Click to expand... No. You can not use any UI in Services. Calling the request can only be done from an activity. Upvote 0
Scantech said: Is there a way to implement the check from starter service? Click to expand... No. You can not use any UI in Services. Calling the request can only be done from an activity.
Erel B4X founder Staff member Licensed User Longtime User Aug 3, 2019 #4 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. Upvote 0
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.