How to Make a Phone Call in Android
http://www.viralandroid.com/2015/11/how-to-make-phone-call-in-android.html
You can easily make a phone call in android. To make a phone call in android, you just need to write little bit code. In this tutorial, you will learn phone call by entering number in code.
Related:
Get Current Time in Android Programmatically
How to Increase and Decrease the Integer Value When the Button is Clicked
Add Permission Code in your AndroidManifest.xml File
The phone call permission code will like this:
AndroidManifest.xml File
XML Layout File
Add a button in your xml layout file, your phone_call.xml file will like this.
res/layout/phone_call.xml
Java Activity File
Add the following code in your java activity file to make phone call.
src/MainActivity.java
Strings Resource File
res/values/strings.xml
Now, run your application and click the Call To button which will look like the output given below.
Output:
Related:
Get Current Time in Android Programmatically
How to Increase and Decrease the Integer Value When the Button is Clicked
Android Example: How to Make a Phone Call in Android
Add Permission Code in your AndroidManifest.xml File
The phone call permission code will like this:
AndroidManifest.xml File
XML Layout File
Add a button in your xml layout file, your phone_call.xml file will like this.
res/layout/phone_call.xml
Java Activity File
Add the following code in your java activity file to make phone call.
src/MainActivity.java
Strings Resource File
res/values/strings.xml
Now, run your application and click the Call To button which will look like the output given below.
Output: