Android Intent Start the dialer

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Example

This example shows how to open a default dialer (an app that makes regular calls) with a provided telephone number already in place:

Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:9988776655")); //Replace with valid phone number. Remember to add the tel: prefix, otherwise it will crash.
startActivity(intent);

Result from running the code above:

enter image description here



Got any Android Question?