Android Programming Tutorials

(Romina) #1

  1. We experiment with an option menu (the kind that appears when


you press the MENU button on a phone) and display a pop-up
message.


  1. We learn how to start a background thread and coordinate


communications between the background thread and the main


("UI") thread.



  1. We learn how to find out when the activity is going off-screen,


stopping and restarting our background thread as needed.



  1. We create a separate UI description for what the tabs should look


like when the phone is held in a landscape orientation.



  1. We finally add database support, so your restaurant data persists


from run to run of the application.



  1. We eliminate the tabs and split the UI into two separate screens


("activities"), one for the list of restaurants, and one for the detail


form to add or edit a restaurant.



  1. We establish a shared preference – and an activity to configure it –


to allow the user to specify the sort order of the restaurants in the


list.



  1. We re-establish the landscape version of our UI (lost when we


eliminated the tabs in Tutorial 12) and experiment with how to
handle the orientation changing during execution of our

application.



  1. We put LunchList on hold and start up a brand new project, Patchy,


for accessing identi.ca.



  1. We integrate the JTwitter JAR – an open source Java API for Twitter


and things supporting the Twitter API – into our application.



  1. We add a partial implementation of a service to the application, one


that will periodically poll identi.ca for timeline updates.



  1. We fully integrate the service from Tutorial 17 into the application,


showing the timeline updates in a list in the main activity.



  1. We split the service out into a separate project, accessed as a


"remote service" using inter-process communication (IPC).


xxvii
Free download pdf