The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.
Many, if not most, Android devices will be phones. As such, not only will users be expecting to place and receive calls using Android, but you will have the opportunity to help them place calls, if you wish.
Why might you want to?
Whatever the reason, Android has the means to let you manipulate the phone just like any other piece of the Android system.
Understanding this chapter requires that you have read the core chapters, particularly the chapter on working with multiple activities.
To get at much of the phone API, you use the
class lets you do things like:
getCallState(), with return values of
CALL_STATE_IDLE(phone not in use),
CALL_STATE_RINGING(call requested but still being connected), and
CALL_STATE_OFFHOOK(call in progress)
getPhoneType()or find out the data connection type (e.g., GPRS, EDGE) via
The preview of this section is out seeking fame and fortune as the Dread Pirate Roberts.
The preview of this section was fed to a gremlin, after midnight.