Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 41: Handling Telephone Calls > No, Really, You Make the Call!

No, Really, You Make the Call!

The good news is that ACTION_DIAL works without any special permissions. The bad news is that it takes the user only to the dialer. The user still has to take action (press the green call button) to actually place the phone call.

An alternative approach is to use ACTION_CALL instead of ACTION_DIAL. Calling startActivity() on an ACTION_CALLIntent will immediately place the phone call, without any other UI steps required. However, you need the CALL_PHONE permission to use ACTION_CALL (see Chapter 38).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint