I have tried this code here but it merely calls the in built app instead of making a call directly:
Intent i = new Intent(android.content.Intent.ACTION_DIAL,
Uri.parse("tel:+" + phoneNumber));
startActivity(i);
Any clue?
You can do this simply. It make the call directly.
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "Your Phone_number"));
startActivity(callIntent);
and add this permission in AndroidManifest.xml
<uses-permission android:name="android.permission.CALL_PHONE" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With