August 7, 2014 3:28 pm
Announced at Google I/O in June, Google Fit is a series of APIs designed to store and access activity data from fitness apps, Android, or other connected devices (e.g. hear rate monitors). Google Fit won’t be officially released until this fall, but starting today developers can access Google’s preview release SDK to begin integration with their fitness apps.
The Google Fit preview SDK contains three sets of APIs for developers to take advantage of (listed below), but not the REST API or any Android Wear APIs, which will be available with the final release. Developers also won’t be able to publish any of their Google Fit-enabled apps to the Play Store until Google Fit is officially released.
Developers can download the SDK at the source link below.
Developer APIs contained within the Google Fit preview SDK:
- Sensors API provides high-level access to sensors from the device and wearables—so with one API your app can talk to sensors, whether on an Android device or a wearable. So if you’re making a running app, you could register it to receive updates from a connected heart rate monitor every 5 seconds during a user’s run and give immediate feedback to the runner on the display.
- Recording API allows apps to register for battery-efficient, cloud-synced background collection of fitness data. For example, a running app could ask to store user’s location so it can map the run later. Once it registers for these data types, collection is done by Fit in the background with no further work needed by the app.
- History API allows operations on the data like read, insert and delete. When the exerciser finishes her run, the running app can query the History API for all locations during the run and show a map.