Hi, I've had a look at some of the forum content but I can't seem to get the program to dial a number from clicking an object
Obviously in the above example its a dummy number
But when using the correct number I get the following error message in the log file
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxxx flg=0x20000 cmp=com.android.server.telecom/.components.UserCallActivity } from ProcessRecord{f037c70 7254:ditl.sunnside/u0a334} (pid=7254, uid=10334) with revoked permission android.permission.CALL_PHONE
I have added the following in the Manifest file
AddPermission(android.permission.CALL_PHONE)
AddPermission(android.permission.CALL_PRIVILEGED)
Any idea's where I'm going wrong
B4X:
Sub label3_click
Dim p As PhoneCalls
StartActivity(p.Call("0123456789"))
End Sub
Obviously in the above example its a dummy number
But when using the correct number I get the following error message in the log file
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxxx flg=0x20000 cmp=com.android.server.telecom/.components.UserCallActivity } from ProcessRecord{f037c70 7254:ditl.sunnside/u0a334} (pid=7254, uid=10334) with revoked permission android.permission.CALL_PHONE
I have added the following in the Manifest file
AddPermission(android.permission.CALL_PHONE)
AddPermission(android.permission.CALL_PRIVILEGED)
Any idea's where I'm going wrong