Get started on Android

  • Development with Google Fit on Android requires a Google Account, Google Play services, and an OAuth 2.0 client ID.

  • You need to add the Google Play services client library as a dependency in your project's build.gradle file.

  • To access certain data types, your app must request both Android and OAuth permissions.

  • You create an API client to access different sources and types of fitness data through various endpoints like SensorsClient, HistoryClient, and SessionsClient.

  • After building and testing, your app needs to undergo verification, especially for sensitive and restricted scopes.

This guide explains how to start development with Google Fit on Android.

Setup

Before you start to build your app, complete the steps in the following sections.

Build and test your app

After you finish the setup steps, you can start to build your app. To get started, learn about the types of data your app can store and read. Learn more about working with data in Google Fit.

Apply for verification

After you build and test your app, you need to apply for verification with different levels of justification needed for sensitive and restricted scopes.