0

Can i make a call from my app directly without having dialer app opened.

I need to call to certain nos from the app but it should not open dialer app.

Manthan Desai
  • 313
  • 2
  • 7
  • 15

1 Answers1

0
Intent out = new Intent();
    out.setAction(Intent.ACTION_CALL);
    out.setData(Uri.parse("tel:" + Uri.encode("+456")));
    startActivity(out);


<uses-permission android:name="android.permission.CALL_PHONE"/>
Nirav Ranpara
  • 13,753
  • 3
  • 39
  • 54