Ah, thank you Manfred and others.
I didn't realise that one had to add the permission to the manifest. Adding that in caused the dialog asking for permission to access location to show.
What is rather strange is that I tried some code which Erel put up in the tutorial and that appeared to work without asking for the permission in the manifest
Specifically, this was the code that worked without a permission in the manifest:
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
Dim pid As PhoneId
Log(pid.GetDeviceId)
Else
Log("didn't get permission")
End If
When I ran this, it popped the dialog up with no problem, and yet it is listed as a "Dangerous" permission in the same way that Location access is considered "Dangerous".
How can one tell which permissions need to be in the Manifest, and which permissions don't? Or should I just put all the permissions that I need in the manifest, along with the rp.CheckAndReqest code?
Thanks to all for your help.
JMB