Google Fit SDK Preview |
Written by Lucy Black | |||
Friday, 08 August 2014 | |||
Google announced Google Fit at this year's I/O but there wasn't much to say other than it would be launched some time towards the end of the year. Now we have the preview SDK ready for the Fall final release. The SDK includes the APIs for Android, but not for Android Wear or the REST API. For these we will have to wait for the final release. To make use of the SDK you simply download it using the SDK manager, and Android Studio seems to be the preferred IDE. It also won't work on a current Android OS. You need to install a preview of Android L. If you want to try your programs out on a real device then you also need to make use of the system images that have been provided for the Nexus 5 or Nexus 7(second model WiFi only). The key feature of the architecture seems to be the use of the Google Fitness Store, part of Google Play services, which the mobile device connects to store the data from the sensors. To make use of it you have to have a Google account and log in using OAuth 2.0 and the certificate generated by the Google Developer's Console.
At the moment all you can do is work with local data as the cloud backend isn't ready. Google promises that it will be available soon. The History API lets your app access data so that you can analyse a user's performance and make helpful suggestions. The Google blog outlines the three APIs:
The sensor framework provides the connection to the sensors in the wearable devices. And this is where the real problems start. In principle it will work with any Bluetooth LE device with a GATT profile. It seems that the LG or Samsung Android Wear watches ??do work with it. In time the intention is to make Google Fit work with a wide range of fitness devices. The big problem is that most fitness devices don't make a big deal of whether they are GATT compatible or not. Even those that do have a GATT profile sometimes user proprietary properties. Currently there is no list of what works well and what doesn't. There is also the problem that the API doesn't support every data type. For example there is no temperature data type - although this will probably be added before the final version is produced. You can develop code to interface with devices that don't support a GATT profile The big question is - will users be happy to let their fitness data be stored by Google? My guess is that the answer will be "yes", as long as the apps are good. More InformationGoogle Fit Preview SDK now available Related ArticlesAndroid Comes To Wearables And Watches Google Glass GDK Available To Explorers Pebble Appstore To Launch This Month Google Moves Into 3D With Project Tango Google Glass Is Open - Feel Free To Hack
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
Comments
or email your comment to: comments@i-programmer.info
|
|||
Last Updated ( Friday, 08 August 2014 ) |