You use the notation tel:<phone_number> to dial a specific phone number. You can also use voicemail: instead of tel: to dial the phone's voicemail shortcut.

With the Intent created, you now have to tell Android that you want the dialer to be launched in a new Activity. To do this, you use the setLaunchFlags( ) method of the Intent. You must pass setLaunchFlags( ) the appropriate parameter for launching. The following is a list of the possible launch flags that you can set:

0 0

Post a comment