Android Programming Tutorials

(Romina) #1

TUTORIAL 39


Getting the Word Out


If we are getting together with others for lunch, they may not be familiar


with every one of the vast array of restaurants that we are tracking in


LunchList. Hence, it would be nice to be able to send details about the


restaurant to people, so that they can find it if they are getting there


separately. One likely approach to do this is to send an SMS with the name


and address of the restaurant, so that is what we will add to LunchList in


this tutorial.


This tutorial will only work on Android 2.x, and there is a bug in the


Android 2.2 emulator that will make doing this tutorial a bit difficult.


Hence, you are best served using Android 2.1 right now. The next tutorial,


though, will add backwards compatibility to what we do here, so you can


use this feature on earlier versions of Android.


And, of course, to actually send the message, you will need an actual


Android phone, not just the emulator.


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 38-Sensors edition of LunchList to use as a starting point.


363
Free download pdf