Android Question Telephone call exception why?

Levisvv

Member
Licensed User
Longtime User
I used a button with the following code:

Dim i As Intent
i.Initialize(i.ACTION_CALL, "tel: +1-604-812-7638")
StartActivity(i)
 

Levisvv

Member
Licensed User
Longtime User
I get the following exception? how can I prevent this?

An error has occured in sub: java.lang.SecurityException: Permission Denial:starting Intent { act=tel flg=0x20000 cmp=com.android.phone/. OutgoingCallBroadcaster } .....
...requires android.permission.CALL_PHONE

Am I getting this error because I am in development mode? WIll this stop if actually installed?
Is there a way to prevent this?
 
Upvote 0

Shahid Saeed

Active Member
Licensed User
Longtime User
I get the following exception? how can I prevent this?

An error has occured in sub: java.lang.SecurityException: Permission Denial:starting Intent { act=tel flg=0x20000 cmp=com.android.phone/. OutgoingCallBroadcaster } .....
...requires android.permission.CALL_PHONE

Am I getting this error because I am in development mode? WIll this stop if actually installed?
Is there a way to prevent this?

It seems you are missing Phone library.
 
Upvote 0
Top