Android Programming Tutorials

(Romina) #1

TUTORIAL 28


Contacting Our Friends


In this tutorial, we tie Android contacts to Patchy, storing identi.ca screen


names in the contacts engine and highlighting those status updates that


come from our contacts.


Step-By-Step Instructions.........................................................................


First, you need to have completed the previous tutorial. If you are


beginning the tutorials here, or if you wish to not use your existing work,


you can download a ZIP file with all of the tutorial results, and you can copy


the 27-IntentFilters edition of Patchy to use as a starting point.


Also note that this tutorial will work with an Android 2.0 device or


emulator but will not work with an Android 1.6 or older environment.


Furthermore, the Android 2.2 emulator presently seems to have a bug,


whereby if you add a contact, it does not appear on the list of contacts, even


though the contact is actually there.


Step #1: Fake the Contact Data


Android's contact database does not have a built-in spot to record the


Twitter screen name of the contact.


275
Free download pdf