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();
source
share