Android Question Simple make call button

Discussion in 'Android Questions' started by ronens, Nov 3, 2018.

  1. ronens

    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
     
  2. jimmyF

    jimmyF Active Member Licensed User

  3. ronens

    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.)
     
  4. DonManfred

    DonManfred Expert Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice