简体   繁体   中英

How to use default dialer screen in android?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM