Android Question "deletecalllogs" function from the Myfirst

Marcomio

New Member
Hello everyone,
Does the "deletecalllogs" function from the Myfirst library work with Android 17 and One UI 9? If it doesn't, is there a new function available for deleting a specific number from the call logs? Thanks
 
Dear friends

I am using

Manifest:
AddPermission(android.permission.READ_CALL_LOG)
AddPermission(android.permission.READ_CONTACTS)


Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim mfl As MyFirstLib
Private rp As RuntimePermissions
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("leggi")

rp.CheckAndRequest(rp.PERMISSION_READ_CALL_LOG)
rp.CheckAndRequest(rp.PERMISSION_WRITE_CALL_LOG)

End Sub

Sub Button2_Click
mfl.deletecalllogs("+44000000000") ' where +44000000000 is a string with the number to be deleted from calllogs

Activity.finish
End Sub


This is the code I’m using; where is the error? Can anyone help me?
Thanks, everyone.
 
Upvote 0
Back
Top