R ryansabin New Member Aug 17, 2020 #1 I am having an issue with the following lines of code. I have researched the forums and cannot get it to work. I have the BLE tutorial app up and running great. BLE.rp.CheckAndRequest(BLE.rp.PERMISSION_ACCESS_COARSE_LOCATION) Wait For Activity_PermissionResult (Permission As String, Result As Boolean) If Result = False Then Return The permission result never returns. I never get asked to approve the permission on the android. I have included the following line in the manifest AddPermission(android.permission.ACCESS_COARSE_LOCATION) I have attached the entire project if that helps. Thanks Attachments Isomia-Control.zip Isomia-Control.zip 15.5 KB · Views: 324
I am having an issue with the following lines of code. I have researched the forums and cannot get it to work. I have the BLE tutorial app up and running great. BLE.rp.CheckAndRequest(BLE.rp.PERMISSION_ACCESS_COARSE_LOCATION) Wait For Activity_PermissionResult (Permission As String, Result As Boolean) If Result = False Then Return The permission result never returns. I never get asked to approve the permission on the android. I have included the following line in the manifest AddPermission(android.permission.ACCESS_COARSE_LOCATION) I have attached the entire project if that helps. Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2020 #2 Please use [code]code here...[/code] tags when posting code. Note that the fine location permission is now required. The example was updated yesterday. Tip: you don't need the service. Things are simpler with B4XPages. It should be: Code: Copy Wait For B4XPage_PermissionResult (... Upvote 0
Please use [code]code here...[/code] tags when posting code. Note that the fine location permission is now required. The example was updated yesterday. Tip: you don't need the service. Things are simpler with B4XPages. It should be: Code: Copy Wait For B4XPage_PermissionResult (...
R ryansabin New Member Aug 18, 2020 #3 Thanks for your response. Its working now. Could you explain your tip. What service don't I need? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2020 #4 The BLE service. You can move the code to one of the pages or to a different class. Upvote 0