Android Question Simple make call button

ronens

Member
Licensed User
hello, i am new in this community.
i tried to create a simple button make call.
i used the following code


Sub Button1_Click

Dim phn As PhoneCalls
StartActivity(phn.Call("062567889"))

End Sub

i add in the Manifest editor :
AddPermission(android.permission.CALL_PHONE)

the application is terminate and i received this log error:

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxx flg=0x20000 cmp=com.android.server.telecom/.components.UserCallActivity } from ProcessRecord{bbb3c48 1220:b4a.example/u0a180} (pid=1220, uid=10180) with revoked permission android.permission.CALL_PHONE

any idea?

thasnk
 

ronens

Member
Licensed User
the application is start ok but it is terminate after i press the button.
(i am using a clean android phone with the latest version.)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top