Make phone call using intent in android

1. Add below permission in manifest file :

<uses-permission android:name="android.permission.CALL_PHONE" />

2. Use below code for phone call.

 String mobileno = "9999999999";

 String uri = "tel:" + mobileno.trim() ;
 Intent intent = new Intent(Intent.ACTION_CALL);
 intent.setData(Uri.parse(uri));
 startActivity(intent);

Share this

Related Posts

Previous
Next Post »