Android Question Permission Denial on Starting Intent when deploying app for the first time with b4a8.0

leitor79

Active Member
Licensed User
Longtime User
Hi,

I've opened a project for the first time with B4A8.0, updated the sdktarget to 26 and jar reference, and I'm getting an exception when I deploy the app on a virtual 8.0 android device.

I've been reading and I'm aware that I probably need to perform some changes on the permissions, but I read here and I don't get where I should make the change.

My app is based on this one and the starting intent is set up in the manifest file. Also, I didin't find which permission should I ask for.

Thank you very much!

 

Pendrush

Well-Known Member
Licensed User
Longtime User
I get same exception on few project started first time on 8.1 device with b4a v8.0.
Some have dangerous permission, some don't.
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
Hi! Thanks for the answer.

No, I think I don't have any permissions set?

If the permissions are set only with AddPermision within the manifest file, then I have none.
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
First double check the permissions list (click on the button) on the right hand logs tab, then add any permissions in the manifest file in the list and at the start of your activity code. You should watch the video again and read the link extremely carefully...
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
Hi Peter, thank you for your answer.

I've checked where you way and I've found 2 permissions.

I've added them in the manifest file, but the error is still the same.

I've tried to add the permissions request in the activity_create, but:

1) Internet and Wake_Lock are not listed as enum items in the runtimepermissions object.
2) My app starts as a service


Regards!
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
Hi Erel, thanks again for your answer.

I didn't noticed that the "picture" at the top was a video. I've watched it now. However, in spite of learning a few things, I still don't get how my issue is related to any of that.

- The only dangerous permission was removed in the manifest. I don't remember why I put that there, but if I remove that permission-removal it doesn't appear in the permissions box. Also, I've noticed that my app doesn't request the use of write on the external storage. I'm not using dirrootexternal or something like that.

- I've added the other 2 non-dangerous permissions into the manifest.

- So, I understand that if I don't need dangerous permissions into my app, I don't need to check and request for them (my understanding of spoken english is not that good). Then, as my app is not using them, I don't have to use checkandrequest (nor check in the service module).

- I've read the list of dangerous permissions and I don't realize, if it's a missing permission, which dangerous permission is related to starting services.


Regards,






 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…