Automating e-mails
In this section, we will briefly discuss the differences between Launchers and Choosers and then utilize the EmailAddressChooserTask
and EmailComposeTask
tasks in a phone application. The Late for Work application will allow users to choose their boss' or colleague's e-mail address and then send a canned e-mail which explains why he/she is late for work. Let's face it; we don't have the time to write an e-mail about why we are late when we are late.
Getting ready
Launchers and Choosers are only slightly different; Choosers return something and Launchers do not. Choosers allow you to, for example, select an e-mail address, picture, or phone number and return it. Launchers perform tasks which do not return any items, in general, such as opening the marketplace hub or launching a web browser. Launchers and Choosers share a similar API which allows developers to very simply interface with the phone's core functions.
In this application, we will use the EmailAddressChooserTask...