0

I am developing an UI for the voip project. I have designed a UI for the dialer screen. Is it possible to use default dialer screen in android project? If yes please provide a link to refer.

deluxan
  • 372
  • 1
  • 5
  • 22

1 Answers1

1

If you want to use default dialer of your phone just use below code

 Intent intent = new Intent(Intent.ACTION_DIAL);
 intent.setData(Uri.parse("tel:" + "1234567890"));
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

You have to mention the number on which you want to place the call. It will open default dialer screen

Kartik Agarwal
  • 1,129
  • 1
  • 8
  • 27