14.01.2013 Views

Android™ Application Development - Bahar Ali Khan

Android™ Application Development - Bahar Ali Khan

Android™ Application Development - Bahar Ali Khan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8: Working in the Background<br />

You used the Notifi cation Manager to send alerts to your users from within Services and Activities<br />

using customized LEDs, vibration patterns, and audio fi les to convey detailed event information.<br />

Using Alarms, you were able to preset events and actions on the device using Intents to broadcast<br />

actions or start Activities or Services.<br />

This chapter also demonstrated how to:<br />

❑<br />

❑<br />

❑<br />

❑<br />

Bind a Service to an Activity to make use of a more detailed, structured interface.<br />

Ensure that your applications remain responsive by moving time-consuming processing like<br />

network lookups onto worker threads.<br />

Use handlers to synchronize child threads with the main application GUI when performing<br />

operations using visual controls and Toasts.<br />

Create insistent and ongoing Notifi cations.<br />

In Chapter 9, you’ll be introduced to the communications features of Android. Starting with a look<br />

at the GTalk Service, you’ll learn how to send and receive text and data messages to transmit data<br />

between devices. You’ll then investigate the SMS functionality available for you to send and receive<br />

SMS text and data messages.<br />

277

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!