Possible Duplicate:
how to make phone call using intent in android?
Please give me code for calling the number through android Application.
Thanks a lot
Sometimes your phone creates two or more than two copies of a single contact. This mostly happens when you factory reset a device and sync contacts or change SIM and accidentally sync all contacts. This can completely clutter the contacts, making it hard to navigate through contacts.
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
Edit: Must add <uses-permission android:name="android.permission.CALL_PHONE" />
in Manifest as well.
Try this,
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
And remember add this CALL_PHONE
permission to your manifest.xml
:
<uses-permission android:name="android.permission.CALL_PHONE" />
This may helps you.
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