Chapter 4

Telephony

In this chapter, you will learn some of the cool recipes related to the phone functionality on Android devices. These recipes range from the simple, such as making calls programmatically from your application, to the interesting, such as blocking outgoing calls, auto-answering incoming calls, and more. You will also learn how to programmatically turn on Bluetooth, as well as switch the phone to Airplane mode. Finally, you will also learn how to obtain the phone number and ID for your SIM card.

Get Android Application Development Cookbook: 93 Recipes for Building Winning Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.