Although my Spanish is at best very basic.... Someone else may well be able to help. There's this, which is also linked to in the link above
https://developer.android.com/guide/topics/permissions/index.html
Have you tried asking here?
https://www.b4x.com/android/forum/forums/spanish-forum.12/
You need to do something like the code in the link(s) above, e.g.
This is an optional feature. It is only relevant if android:targetSdkVersion is set to 23 or above.
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1") ' or whatever
rp.CheckAndRequest(rp.PERMISSION_CALL_PHONE)
' rp.CheckAndRequest(rp.PERMISSION_READ_EXTERNAL_STORAGE)
End Sub
Sub Activity_PermissionResult (Permission AsString, Result As Boolean)
If Permission = rp.PERMISSION_CALL_PHONE Then
gmap.MyLocationEnabled = Result
EndIf
End Sub
Although from the link, thanks to
@Erel for this.
"
The dangerous permissions are marked with * (in B4A v6+).
You don't need to ask for non-dangerous permissions.
READ_EXTERNAL_STORAGE / WRITE_EXTERNAL_STORAGE
This is the most common dangerous permission. It is added automatically when you use File.DirDefaultExternal or File.DirRootExternal.
However there is a simple workaround for this.
1. Use RuntimePermissions.GetSafeDirDefaultExternal("") instead of File.DirDefaultExternal. The parameter passed is an optional subfolder that will be created under the default folder.
2. Add this code to the manifest editor:
Code:
AddManifestText(
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
The explanation for this is that GetSafeDirDefaultExternal doesn't require any permission on Android 4.4+ (API 18) and requires the WRITE_EXTERNAL_STORAGE on older versions. The code above adds the permission to older devices.
You only need to deal with WRITE_EXTERNAL_STORAGE at runtime if you need access to a folder other than the app's default external folder.
"