using android dialer in 3rd party app

前端 未结 2 1903
孤街浪徒
孤街浪徒 2020-12-04 00:26

guys. I am trying to build a voip app for android. I want to make use of the built-in android phone dialer. Can you guys give me some reference to it. I have been googling w

2条回答
  •  無奈伤痛
    2020-12-04 01:23

    This should open the dialer with new special permissions:

    Intent i = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:0000000000"));
    startActivity(i);
    

    That should open the dialer with the required telephone number already inserted.

提交回复
热议问题