H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 17, 2022 #1 B4X: Dim rp As RuntimePermissions For Each permission As String In Array(rp.PERMISSION_GET_ACCOUNTS,rp.PERMISSION_READ_CONTACTS) rp.CheckAndRequest(permission) Wait For B4XPage_PermissionResult (permission As String, Result As Boolean) If Result = False Then Log(permission & " denied") Return End If Next In B4XPages, above code works fine if we don't grant it, Log(permission & " denied") fired. If we grant it and call it again, code crash & through error: B4X: Sub activity_permissionresult was not found. Any explanation?
B4X: Dim rp As RuntimePermissions For Each permission As String In Array(rp.PERMISSION_GET_ACCOUNTS,rp.PERMISSION_READ_CONTACTS) rp.CheckAndRequest(permission) Wait For B4XPage_PermissionResult (permission As String, Result As Boolean) If Result = False Then Log(permission & " denied") Return End If Next In B4XPages, above code works fine if we don't grant it, Log(permission & " denied") fired. If we grant it and call it again, code crash & through error: B4X: Sub activity_permissionresult was not found. Any explanation?
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 18, 2022 #21 Erel said: Not true. It was there since B4A v1.0. Click to expand... Aha, it is my mistake & misunderstanding. sorry Upvote 0
Erel said: Not true. It was there since B4A v1.0. Click to expand... Aha, it is my mistake & misunderstanding. sorry
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 18, 2022 #22 ivan.tellez said: RuntimePermissions.androidx.jar Click to expand... If this missed file was the problem only, Can you zip it & share us. Upvote 0
ivan.tellez said: RuntimePermissions.androidx.jar Click to expand... If this missed file was the problem only, Can you zip it & share us.
agraham Expert Licensed User Longtime User May 18, 2022 #23 Hamied Abou Hulaikah said: If this missed file was the problem only, Can you zip it & share us. Click to expand... You don't need it. To be safe delete your SDK, uninstall B4A, and ensure that there are no remaining files left in the internal libraries folder and then follow the instructions exactly. It should just work and you don't need any extra files. B4A – The simple way to develop native Android apps B4A includes all the features needed to quickly develop any type of Android app. B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others. www.b4x.com Upvote 0
Hamied Abou Hulaikah said: If this missed file was the problem only, Can you zip it & share us. Click to expand... You don't need it. To be safe delete your SDK, uninstall B4A, and ensure that there are no remaining files left in the internal libraries folder and then follow the instructions exactly. It should just work and you don't need any extra files. B4A – The simple way to develop native Android apps B4A includes all the features needed to quickly develop any type of Android app. B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others. www.b4x.com
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 18, 2022 #24 agraham said: To be safe delete your SDK, uninstall B4A Click to expand... I don't like that, because I have a lot of old projects, so I don't want to enter in a collateral war here & there such us missed, maven, artifact, config, ...etc Upvote 0
agraham said: To be safe delete your SDK, uninstall B4A Click to expand... I don't like that, because I have a lot of old projects, so I don't want to enter in a collateral war here & there such us missed, maven, artifact, config, ...etc
agraham Expert Licensed User Longtime User May 18, 2022 #25 Your choice - but expect further problems if you don't. Upvote 0
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 18, 2022 #26 Anyone please share us this file: RuntimePermissions.androidx.jar Upvote 0
Sagenut Expert Licensed User Longtime User May 18, 2022 #27 Hamied Abou Hulaikah said: I don't like that, because I have a lot of old projects, so I don't want to enter in a collateral war here & there such us missed, maven, artifact, config, ...etc Click to expand... Unluckily you would risk it anyway. It looks like your installation has some problems. Even if we supply you with the file you requested now then it could happen with another and another. Your projects should be external to the B4A installation folder, as it should be the Additional Libraries. Take the time to save all the necessary files and then start from a clean B4A install and SDK. You won't regret it. Upvote 0
Hamied Abou Hulaikah said: I don't like that, because I have a lot of old projects, so I don't want to enter in a collateral war here & there such us missed, maven, artifact, config, ...etc Click to expand... Unluckily you would risk it anyway. It looks like your installation has some problems. Even if we supply you with the file you requested now then it could happen with another and another. Your projects should be external to the B4A installation folder, as it should be the Additional Libraries. Take the time to save all the necessary files and then start from a clean B4A install and SDK. You won't regret it.
Sagenut Expert Licensed User Longtime User May 18, 2022 #28 Here they are. Good Luck. Backup what you have before overwrite. Attachments RuntimePermissions.androidx.jar RuntimePermissions.androidx.jar 3.5 KB · Views: 484 RuntimePermissions.jar RuntimePermissions.jar 3.5 KB · Views: 485 RuntimePermissions.xml RuntimePermissions.xml 7.3 KB · Views: 492 Upvote 0
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 18, 2022 #29 Library files replaced and added to internal lib folder, OP code worked smooth without error. Thank you Upvote 0
Library files replaced and added to internal lib folder, OP code worked smooth without error. Thank you
Sagenut Expert Licensed User Longtime User May 18, 2022 #30 This is solved, OK. The question is: Why was your files wrong/corrupted? The ones I sent you are just from B4A installation. Upvote 0
This is solved, OK. The question is: Why was your files wrong/corrupted? The ones I sent you are just from B4A installation.
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 18, 2022 #31 Sagenut said: Why was your files wrong/corrupted? Click to expand... logic answer: may be related to B4A update installer who missed that files or can't update them, or they was used by another process while b4a update process! Upvote 0
Sagenut said: Why was your files wrong/corrupted? Click to expand... logic answer: may be related to B4A update installer who missed that files or can't update them, or they was used by another process while b4a update process!