Google Fit API : Get distance from google fit

前端 未结 5 890
小鲜肉
小鲜肉 2021-01-28 17:35

How do I calculate the distance covered by the user using the google fit API? Currently I am using google Fit History Api like this :

DataReadRequest readRequest         


        
5条回答
  •  暖寄归人
    2021-01-28 18:01

    You have to add the scope as below:

    .addScope(new Scope(Scopes.FITNESS_LOCATION_READ))

提交回复
热议问题