Google Fit is a platform that allows developers to build applications that are focused on user fitness data. One of the tools Google has provided is Google Fit for Android, which is available as a package in Google Play Services. This tutorial will expand on the topic by exploring how to record time-based sessions with the Sessions API.
Source files for the Envato Tuts+ tutorial: Google Fit for Android: Sessions API
Read this tutorial on Envato Tuts+