קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
האפליקציה שלך יכולה לתעד את ספירת הצעדים של המשתמש באמצעות 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 Fit שומרת את נתוני השלבים מהמינוי, גם אם האפליקציה לא
פעיל ומשחזר את המינוי כאשר המערכת מופעלת מחדש. האפליקציה שלך יכולה
קריאת הנתונים הכוללים של מספר הצעדים היומי
מהיסטוריית הכושר של המשתמש.
[[["התוכן קל להבנה","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-07-25 (שעון UTC)."],[[["Your app can record cumulative step count data using the RecordingClient and subscribing to the `DataType.TYPE_STEP_COUNT_CUMULATIVE` data type."],["Google Fit persistently stores step data and automatically restores subscriptions, allowing your app to access daily step totals even when not actively running."],["Refer to the provided code example to learn how to implement step count recording in your application."]]],[]]