Recipe Dialing a Phone Number

To make a phone call from an application, the following permission needs to be added to the AndroidManifest XML file:

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

The act of making a call can either use the ACTION_CALL or action_dialer implicit intent.When using the action_dialer intent, the phone dialer user interface is displayed with the specified phone number ready to call. This is created using:

startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:15102345678")));

When using the ACTION_CALL intent, the phone dialer is not shown and the specified phone number is just dialed.This is created using:

startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:15102345678")));

picked up");

received");

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook


Post a comment