Google is attempting to make working out a little better by adding some fun to the exercise.

Google announces Games in Motion to combine exercise and fun

Games in Motion is the latest set of sample code from Google that gives developers an idea of how to integrate additional Android Wear functionality to make working out a little better. Knowing that it can be hard to keep motivated on runs, Google is hoping that being able to complete missions while running will make it better. With Games in Motion developers will be able to have users complete tasks on their wrist, while their workout data is still being recorded in the background.

Multiple Android technologies are used in Games in Motion, which is written in Java using Android Studio. Some of these technologies are:

  • Android Wear bridges notifications from a phone or tablet to a paired Android Wear device. The notifications are stacked so we can show multiple stats at the same time.
  • Google Fit API collects and processes fitness data and sessions. This allows us to use the fitness data to show user progress. All exercise sessions done in Games in Motion will be recorded to Google Fit as well.
  • Google Play Games Services is used to create and unlock achievements.
  • Several different Android audio APIs are integrated.
  • JUnit tests are present for the data-driven parser, which demonstrates how unit testing can be done within Android Studio.

The code samples are available now on GitHub for developers to download.

Source: Google Developers