Google Fit REST API de dahil olmak üzere Google Fit API'lerinin desteği 2026'da sonlandırılacak. 1 Mayıs 2024'ten itibaren geliştiriciler bu API'leri kullanmak için kaydolamaz.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Uygulamanız RecordingClient kullanarak kullanıcının adım sayısını kaydedebilir
(DataType.TYPE_STEP_COUNT_CUMULATIVE verilerine abonelik oluşturmak için)
türünü ekleyin:
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, uygulama olmasa bile abonelikteki adım verilerini depolar
çalışır ve sistem yeniden başlatıldığında aboneliği geri yükler. Uygulamanız şunları yapabilir:
günlük toplam adımı oku
kullanıcının fitness geçmişinden.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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."]]],[]]