Android Question opean call dailer

Discussion in 'Android Questions' started by zavaree, Nov 8, 2019 at 12:02 PM.

  1. zavaree

    zavaree Active Member Licensed User

    hi , i want open call dailer just whithout call , how can do it?
     
  2. DonManfred

    DonManfred Expert Licensed User

    Code:
    Dim in As Intent
        
    in.Initialize("android.intent.action.DIAL","")
        
    StartActivity(in)
     
  3. zavaree

    zavaree Active Member Licensed User

    Hi, I used your code but got the error below!
    hamkaran_frm_call_click (java line: 449)
    android.content.ActivityNotFoundException: No Activity found to handle Intent {act = android.intent.action.DAIL flg = 0x20000}
    at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1879)
    at android.app.Instrumentation.execStartActivity (Instrumentation.java:1546)
    at android.app.Activity.startActivityForResult (Activity.java:4298)
    at android.app.Activity.startActivityForResult (Activity.java:4245)
    at android.app.Activity.startActivity (Activity.java:4582)
    at android.app.Activity.startActivity (Activity.java:4550)
    at anywheresoftware.b4a.keywords.Common.StartActivity (Common.java:846)
    at asm.legal.com.hamkaran_frm._call_click (hamkaran_frm.java:449)
    at java.lang.reflect.Method.invoke (Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
    at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:170)
    at anywheresoftware.b4a.BA.raiseEvent (BA.java:166)
    at anywheresoftware.b4a.objects.ViewWrapper $ 1.onClick (ViewWrapper.java:80)
    at android.view.View.performClick (View.java:5714)
    at android.view.View $ PerformClick.run (View.java:22589)
    at android.os.Handler.handleCallback (Handler.java:739)
    at android.os.Handler.dispatchMessage (Handler.java:95)
    at android.os.Looper.loop (Looper.java:148)
    at android.app.ActivityThread.main (ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
     
  4. DonManfred

    DonManfred Expert Licensed User

    i used it successfully on my device.
    Did you changed something in the code? i guess YES. I DID NOT post a code with

    android.intent.action.DAIL
     
    Mahares likes this.
  5. Erel

    Erel Administrator Staff Member Licensed User

    Does it work with "tel:123" as the data parameter?
     
  6. zavaree

    zavaree Active Member Licensed User

    I acted according to the code you sent and I did exactly that, I am attaching the code image
     

    Attached Files:

  7. DonManfred

    DonManfred Expert Licensed User

    OMG

    When you copy and paste; Please do it RIGHT!

    Look at your Code and compare it to the Code i posted...
     
    Last edited: Nov 11, 2019 at 6:31 AM
    mangojack likes this.
  8. Mahares

    Mahares Well Known Member Licensed User

    The least you can do is follow Manfred suggestion and also correct the title of your thread so others can find: 'opean call dailer'
    How do you expect this forum to be reliable if you do not make an effort to at least type the correct title. For most of us, English is not the native language and should not be used as an excuse when it comes to thread title. A small effort goes a long way if you are careful with your thread title spelling.
     
  9. zavaree

    zavaree Active Member Licensed User


    Yes, that's right, once again, I want to send a mobile number to the contact area, but it won't automatically ring until I hit the call button. I have a code that directly opens and calls the contact page. But I want to go to the contact page and enter the contact number and then the caller presses the phone button again to call.
     
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