Start the dialer
suggest changeThis 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:
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents