앱은 RecordingClient를 사용하여 사용자의 걸음 수를 기록할 수 있습니다.
DataType.TYPE_STEP_COUNT_CUMULATIVE 데이터에 대한 구독을 만듭니다.
유형을 지정할 수 있습니다.
Fitness.getRecordingClient(this,GoogleSignIn.getAccountForExtension(this,fitnessOptions)).subscribe(DataType.TYPE_STEP_COUNT_CUMULATIVE).addOnSuccessListener{Log.i(TAG,"Subscription was successful!")}.addOnFailureListener{e->
Log.w(TAG,"There was a problem subscribing ",e)}
Google 피트니스는 앱이
시스템을 다시 시작하면 구독을 복원합니다. 앱에서 할 수 있는 작업
일일 총 걸음 수 읽기
사용자의 피트니스 기록에서 삭제합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-31(UTC)"],[],[]]