Android realizes the function of making calls from mobile phones
The most common function of a mobile phone is to make calls and send text messages. How can we make calls through programs in Android development? This paper gives a simple example of making a call with an Android mobile phone.
Here are the specific steps to develop this example:
1、 Create a new Android project named phonecalldemo.
2、 Design program interface, open main Modify the XML content as follows:
XML / HTML code
3、 Increase the permission to make calls and open androidmanifest XML, the modified code is as follows:
XML / HTML code
4、 Main program phonecalldemo The Java code is as follows:
The above is a simple example of Android development calling. We will continue to supplement relevant materials in the future. Thank you for your support for this site!