Problem with Google Fit API on Android Wear

I am trying to embed the Google Fit APIs in my Android app. I followed the online steps of GoogleFitAPI with registration for OAuth ID.

When I try to connect, I get an invalid account error.

Do I need to include a free trial in the api developer console or is there another problem that causes this?

mClient = new GoogleApiClient.Builder(this)
            .addApi(Fitness.API)
            .addScope(Fitness.SCOPE_ACTIVITY_READ)
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this)
            .build();
+4
source share
2 answers

Fit API Android Wear. ( 5) . , , API . , MessageAPI, API , .

, API , , ( , ).

( MessageAPI).

EDIT: Google Play Services 7.3.0 Fitness.HistoryApi.readDailyTotal(), . , .

+5

API Google Fit Android Wear. Google Fit Wearable Data Layer , , , .

0

All Articles