The main gast-lib repository

Great Android Sensing Toolkit (GAST)

Welcome to GAST!

GAST is a toolkit for using Android’s Sensing capabilities. It contains the examples, boiler plate code, and algorithms you need to properly use Android sensors.

It is based on the code written for Professional Android Sensor Programming by Greg Milette and Adam Stroud

What Sensors?

By sensors, we mean: a capability that can capture measurements about the device and its external environment

GAST provides code for the following capabilities:

  • Location sensors: sensors related to the LocationProvider API
  • Physical sensors: all sensors in SensorManager API such as the ones that detect device specific properties such as orientation, acceleration, and rotation and environmental properties such as light, magnetic fi eld, and barometric pressure.
  • External sensors: Any sensor connected using the Android Open Accessory (AOA) mechanism.
  • NFC
  • Camera
  • Microphone
  • Speech recognition


Learn more



All the code is licensed under the Apache 2.0 license. See LICENSE.txt for license details.

Related Repositories



The main gast-lib repository ...