Lecture 14: Sensors and Location

This lecture reviews the different types of device sensor supported by Android. It explores the sensor framework and presents code examples of how to manage a sensor and respond to the regular measurements that it makes, or to changes in their accuracy. The lecture also considers the high-level location services API provided by Android, presenting a small example of how to determine device location. Particular attention is paid to the ways in which power consumption can be minimised when making sensor measurements or determining location.