In this tutorial, you learn how to use Google Fit to create low-power background subscriptions for sensor data. We explore how to leverage Google Play Services to store fitness data so that it can be accessed at a later time.
Source files for the Envato Tuts+ tutorial: Google Fit for Android: Recording API
Read this tutorial on Envato Tuts+.