Android Question GNSS on B4xPages

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi
sometimes I need to migrate code written for B4A versions before the introduction of B4XPages. Therefore I put the previous code taken from old Examples, in the B4XMain page. Moreover, being that the Starter module is still permitted, I put the old starter inside the new project. Sometimes, like in this case, it simply doesn't work. I guess that the problem is related to the use of permissions, on which I am missing something, of course. I added the manifest instruction related to this issue. I attach the new project. It never activates GNSS. Of course the old style app is working.
Thanks in advance for any hint..
 

Attachments

  • TestGnssPages.zip
    11.2 KB · Views: 41

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi
I remembered that I had same problem for camera. Therefore the solution is the same.

Instead of waiting for Activity_permissionResult, I must use:

wait for b4xpage_PermissionResult (Permission As String, Resu As Boolean)

This was the problem.
 
Upvote 1
Top