/Android-Google-Fit-Service-Skeleton

A minimal Android project that handles Google fit authorization and data retrieval. Google Fit runs in a service and only select pieces are exposed to the activity.

Primary LanguageJava

Android-Google-Fit-Service-Skeleton

People want to run Google Fit inside of an Android service, and to minimize the amount of Google Fit code insie their activities and fragments. This project contains two files: MainActivity.java GoogleFitService.java

...that attempt to do just that. I use this pattern in my application, Cinch, and it's very reliable. I have multiple fragments make requests to the service, and MainActivity only contains a small set of Fit code required to do the initial authorization.