Chapter 3. Are We There Yet?

In This Chapter

  • Using the Location Manager

  • Seeing how the accelerometer really works

  • Incorporating device movement in RoadTrip

One summer, when I was about 8 or 9 and my brother was about 4 or 5, my father and mother decided to drive to Florida for a family vacation. We were living in Northern New Jersey at the time, and my parents packed up the car with their stuff, some toys and books for us, and off we went. (What were they thinking?) This was my very first road trip.

We had gone, oh a good 5 or 6 miles, when my brother piped up from his side of the back seat "Are we there yet?"

"No, Jay" my father replied, "we have quite a way to go."

Well, we actually got another few miles before my brother asked again "Are we there yet?"

"No," my father (still) patiently replied (although I could tell his patience was beginning to wear thin), "we have a really long way to go. A really long way to go. You are going to be in the car for a long time — a couple of days. So we aren't even close to being there yet."

Well, another few miles went by, and sure enough, from my brother's corner of the back seat came "are we there yet?"

My father at this point could see the writing on the wall and said to my brother, "No we are not! And if you ask me that one more time . . . "(Fill in the blank according to your imagination.)

Well, this kept my brother quiet for a while — a very short while. At the point he couldn't stand it anymore, out from his corner of the back seat came the immortal ...

Get iPhone® Application Development All-In-One For Dummies® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.