How to make phone calls from your android application

It is very simple to make a phone call from your android application.

  1. add user permission to AndroidManifest.xml file

  1. Use following coding to make the call

try { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:111111111")); startActivity(callIntent); } catch (ActivityNotFoundException e) { Log.e("Android Call", "Call failed", e); }

Tested with Android 1.5(version 3) or above