Requiring Android Permissions in development

Rhonan

Member
Licensed User
Longtime User
Hi,

I have a strange one. I'm exploring the cellID functions in the reflection library (lovely library) and I'm usb-connected to my phone for development purposes. When I compile, I get told that the user or and application does not have the android.permission: access_coarse_location.

i've never seen this when i'm developing with a direct connection. I'm not sure how to even assign that permission from B4A?

Am I missing something?
Thanks
R
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
Hi Rhonan,

You should use the manifest editor.

Addpermission("android.permission.permissionname") or something like this.

Or if you don't have the manifest editor yet, you can do it manually by editing the manifest file and adding the permission:

Normally, libs do this automatically, but the reflector libs lets u use functions that requires new permissions.

Here's a list of all permissions:
http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_COARSE_LOCATION
You need to look for the constant value

Tomas

Sent from my SE Xperia Play using Tapatalk.
 
Last edited:
Upvote 0

Rhonan

Member
Licensed User
Longtime User
thanks... i've been spoilt to date with the other libraries.



Hi Rhonan,

You should use the manifest editor.

Addpermission("android.permission.permissionname") or something like this.

Or if you don't have the manifest editor yet, you can do it manually by editing the manifest file and adding the permission:

Normally, libs do this automatically, but the reflector libs lets u use functions that requires new permissions.

Here's a list of all permissions:
Manifest.permission | Android Developers
You need to look for the constant value

Tomas

Sent from my SE Xperia Play using Tapatalk.
 
Upvote 0
Top