How to make my own custom dialer in an Android phone

后端 未结 3 1708
别跟我提以往
别跟我提以往 2020-11-29 07:43

In my application I add an intent so that the user can call:

str=\"tel:\"+phoneArray[11];  
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(U         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 08:12

    Create an app that responds to Intent.ACTION_DIAL. In the AndroidManifest.xml you need to add the following to that Activity:

    
        
        
    
    

    You can take the official phone app as reference. But be warned, it is no trivial task.

    You can replace only the Dialer that way. The actual calling thing (what you see during calls) can't be changed.

    For more information, see Stack Overflow question Android dialer application.

提交回复
热议问题