I Ivica Golubovic Active Member Licensed User Longtime User Nov 28, 2022 #1 I have a problem that has been bothering me for days. Is it possible in a separate class, not in the Activity, to intercept the event: Code: Copy @Override public void onRequestPermissionsResult(int requestCode,String permissions[], int[] grantResults) So I know it is possible to intercept the onActivityResult event via the anywheresoftware.b4a.IOnActivityResult class. Is there any similar principle for onRequestPermissionsResult? Thanks.
I have a problem that has been bothering me for days. Is it possible in a separate class, not in the Activity, to intercept the event: Code: Copy @Override public void onRequestPermissionsResult(int requestCode,String permissions[], int[] grantResults) So I know it is possible to intercept the onActivityResult event via the anywheresoftware.b4a.IOnActivityResult class. Is there any similar principle for onRequestPermissionsResult? Thanks.
DonManfred Expert Licensed User Longtime User Nov 28, 2022 #2 The correct way is to use RuntimePermissions Library and let the User use it. Implementing it in another way is not the correct way in B4A. Upvote 0
The correct way is to use RuntimePermissions Library and let the User use it. Implementing it in another way is not the correct way in B4A.
DonManfred Expert Licensed User Longtime User Nov 28, 2022 #3 You can add a Description what the user have to use (example code to request the correct permissions) though. Upvote 0
You can add a Description what the user have to use (example code to request the correct permissions) though.
I Ivica Golubovic Active Member Licensed User Longtime User Nov 28, 2022 #4 DonManfred said: The correct way is to use RuntimePermissions Library and let the User use it. Implementing it in another way is not the correct way in B4A. Click to expand... Of course I know it is, but in my case it's impossible via Activity_PermissionResult or B4XPage_PermissionResult, that's why I'm forced to ask this question. Upvote 0
DonManfred said: The correct way is to use RuntimePermissions Library and let the User use it. Implementing it in another way is not the correct way in B4A. Click to expand... Of course I know it is, but in my case it's impossible via Activity_PermissionResult or B4XPage_PermissionResult, that's why I'm forced to ask this question.
DonManfred Expert Licensed User Longtime User Nov 28, 2022 #5 Ivica Golubovic said: but in my case it's impossible via Activity_PermissionResult or B4XPage_PermissionResult Click to expand... what permission you can not get in this way? Upvote 0
Ivica Golubovic said: but in my case it's impossible via Activity_PermissionResult or B4XPage_PermissionResult Click to expand... what permission you can not get in this way?
I Ivica Golubovic Active Member Licensed User Longtime User Nov 28, 2022 #6 DonManfred said: what permission you can not get in this way? Click to expand... I am working on a RuntimePermission class that will simplify my work in future projects. If the class proves to be effective, I will probably create a library that I will post on the forum. The condition is that I succeed in the idea, and that's why I need access to the mentioned event. Upvote 0
DonManfred said: what permission you can not get in this way? Click to expand... I am working on a RuntimePermission class that will simplify my work in future projects. If the class proves to be effective, I will probably create a library that I will post on the forum. The condition is that I succeed in the idea, and that's why I need access to the mentioned event.
DonManfred Expert Licensed User Longtime User Nov 28, 2022 #7 Ivica Golubovic said: that's why I need access to the mentioned event Click to expand... You can check the Runtimepermissionslibrary-code at Github if you get an an Idea B4A/Libs_RuntimePermissions/src/anywheresoftware/b4a/objects at master · AnywhereSoftware/B4A B4A core libraries. Contribute to AnywhereSoftware/B4A development by creating an account on GitHub. github.com Upvote 0
Ivica Golubovic said: that's why I need access to the mentioned event Click to expand... You can check the Runtimepermissionslibrary-code at Github if you get an an Idea B4A/Libs_RuntimePermissions/src/anywheresoftware/b4a/objects at master · AnywhereSoftware/B4A B4A core libraries. Contribute to AnywhereSoftware/B4A development by creating an account on GitHub. github.com
I Ivica Golubovic Active Member Licensed User Longtime User Nov 28, 2022 #8 DonManfred said: You can check the Runtimepermissionslibrary-code at Github if you get an an Idea B4A/Libs_RuntimePermissions/src/anywheresoftware/b4a/objects at master · AnywhereSoftware/B4A B4A core libraries. Contribute to AnywhereSoftware/B4A development by creating an account on GitHub. github.com Click to expand... Yes, I used certain parts of the library, but the problem is that the compiler calls the specified event that is bound to the Activity. So, this library does not call directly specified event. Upvote 0
DonManfred said: You can check the Runtimepermissionslibrary-code at Github if you get an an Idea B4A/Libs_RuntimePermissions/src/anywheresoftware/b4a/objects at master · AnywhereSoftware/B4A B4A core libraries. Contribute to AnywhereSoftware/B4A development by creating an account on GitHub. github.com Click to expand... Yes, I used certain parts of the library, but the problem is that the compiler calls the specified event that is bound to the Activity. So, this library does not call directly specified event.