Dear friends, please for advice:
I am using:
with myphone.sdkversion=26, Android 8
I have not this app in google play. I have only my own instalation.
I get error:
I am using this permission:
In Manifesteditor i have:
The trouble is Google, my Phone or my code, please?
Thank you
p4ppc
I am using:
B4X:
Dim myCallLog As CallLog
Dim myList As List
Dim myitem As CallItem
myList = myCallLog.GetAll(0)
I have not this app in google play. I have only my own instalation.
I get error:
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.CallLogProvider from ProcessRecord{3d87bd0 8097:mm2.app.mobile/u0a202} (pid=8097, uid=10202) requires android.permission.READ_CALL_LOG or android.permission.WRITE_CALL_LOG
I am using this permission:
B4X:
rp.CheckAndRequest(rp.PERMISSION_READ_CALL_LOG)
wait for Activity_PermissionResult(permission As String, result As Boolean)
If result=True Then
'-----------CALL LOG
Dim myCallLog As CallLog
Dim myList As List
Dim myitem As CallItem
myList = myCallLog.GetAll(0)
End If
B4X:
AddPermission(android.permission.READ_CALL_LOG)
The trouble is Google, my Phone or my code, please?
Thank you
p4ppc