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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: Intents, Broadcast Receivers, Adapters, and the Internet<br />

package=”com.paad.contactpicker”><br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

When your Activity is running, press the button. The contact picker Activity should be shown as in<br />

Figure 5-1.<br />

Figure 5-1<br />

Once you select a contact, the parent Activity should return to the foreground with the selected contact<br />

name displayed, as shown in Figure 5-2.<br />

Figure 5-2<br />

129

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

Saved successfully!

Ooh no, something went wrong!