Sunday, February 4, 2018

Making Phone Call In Android

We can make  a call In Android.

We are able to make a phone call in android via intent. You need to write only three lines of code to make a phone call.


  1. Intent callIntent = new Intent(Intent.ACTION_CALL);  
  2. callIntent.setData(Uri.parse("tel:"+8802177690));//change the number  
  3. startActivity(callIntent); 

Write the permission code in Android-Manifest.xml file

You need to write CALL_PHONE permission as given below:
  1. <uses-permission android:name="android.permission.CALL_PHONE" />

No comments:

Post a Comment