Android Programming Tutorials

(Romina) #1
Contacting Our Friends

Figure 50. The contact detail form, showing the "identi.ca" IM type and
"thescreename" as the screen name

Click the Done button, and you are set. You will need one or more contacts


set up with screen names. In particular, you need contacts that will have


status updates in your timeline.


Step #2: Design the App Widget Layout...........................................


Next, we need to decide how we wish to highlight those friends who are in


our contacts database. A simple highlight that we can apply is to put a


background color on the friend's name – that will help friends who are


contacts to stand out from the rest.


To do that, we first need to amend TimelineEntry, so it knows whether or


not it is a contact – add the following data member to the TimelineEntry


inner class of Patchy:


boolean isContact=false;

280
Free download pdf