CS 491 Lecture 22 – Using GPS
Before class
A
Before we meet:
- Watch http://youtu.be/C7IQ9tV2FAI.
- Skim http://developer.android.com/reference/android/app/PendingIntent.html.
- Skim http://developer.android.com/guide/topics/ui/notifiers/notifications.html.
B
Before we meet:
- Watch http://youtu.be/OPFCxdD-SeA.
- Read http://developer.android.com/guide/topics/location/strategies.html.
In class
Write an Are We There Yet? app. Keep these in mind:
- Create a Google APIs AVD.
- Register a location as a destination. You choose the mechanism for performing this registration. Geocoding would be awesome.
- Listen for location updates. Use Location.distanceTo to compare the current location with the target.
- Issue an update notification reporting how close we are to the destination.
Debugging with a KML file may be helpful.