改進應用程式品質:從優良、品質到最佳
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本文件記錄了健康與健身應用程式從起點到最佳狀態的最佳進度。旨在協助您思考如何隨時間擴充應用程式,以及要實作哪些功能。雖然每個健康與健身應用程式各不相同,但建議您遵循以下建議,打造出一流的應用程式。
基本健康與健身應用程式
如要為使用者提供良好基礎體驗,基本健康與健身應用程式需要一些關鍵元素。部分重要元素包括執行下列操作:
- 僅要求必要的權限以完成使用者想要的體驗
- 提供易於自訂且易於理解的追蹤指標
- 提供瀏覽及探索應用程式內容
- 提供應用程式內運動控制項
- 如要追蹤運動時段或其他與健康相關的長時間執行工作,請使用前景服務,並在資訊清單檔案中宣告 FOREGOUND_SERVICE_HEALTH 權限。
- 整合簡單易用的無障礙功能
更強大的健康與健身應用程式
隨著使用者身心健康的歷程有所進展,改善健康與健身應用程式的觸及率也會開始增加。更優質的應用程式也可讓使用者利用現有的社群媒體憑證和電子郵件,輕鬆註冊設定檔。
為應用程式進行更全面的改善,也是加速應用程式成長的極佳方法。請考慮使用這些功能來進一步強化應用程式:
一流的健康與健身應用程式
這款最佳健康與健身應用程式是以先前的建議為基礎,為使用者提供流暢的多裝置體驗,可能包括:
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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-27 (世界標準時間)。"],[],[],null,["# Improve your app's quality: from good, to better, to best\n\nThis document charts the optimal progression of a health and fitness app from a\nlikely starting place to best-in-class. It's designed to help you think about\nscaling your app over time, and what features to implement. While every health\nand fitness app is different, consider these recommendations to achieve a\nbest-in-class app.\n\nBasic health and fitness app\n----------------------------\n\nThere are key elements that a basic health and fitness app requires in order to\nprovide a great foundational experience for users. Some of those key elements\ninclude doing the following:\n\n- Requesting only the necessary permissions to fulfill the experience that the user wants\n- Offering tracking metrics that are customizable and easy to understand\n- Offering in-app content browsing and discovery\n- Offering in-app exercise controls\n- If tracking an exercise session or other health-related long-running task, using a foreground service and declaring the [FOREGOUND_SERVICE_HEALTH](/about/versions/14/changes/fgs-types-required#health) permission in the manifest file.\n- Integrating easy-to-use, [accessibility features](/guide/topics/ui/accessibility)\n\nBetter health and fitness app\n-----------------------------\n\nA better health and fitness app will start to grow its reach, once a user has\nphysically and mentally made progress along their health journey. A better app\nalso allows a user to easily register for a profile with the use of existing\nsocial media credentials and their email.\n\nImplementing more holistic improvements into your app is also an excellent way\nto accelerate its growth. Consider these features as a way to further enhance\nyour app:\n\n- Integrating second surfaces, such as Wear OS (using [Health Services on Wear\n OS](/training/wearables/health-services) for data collection). Use Bluetooth Low Energy (BLE) to send and receive data to and from peripheral devices\n- If connecting peripheral devices, preserve battery usage. If you are periodically syncing data, use the [CONNECTED_DEVICE](/about/versions/14/changes/fgs-types-required#connected-device) foreground service type.\n- Using [Jetpack Glance](/jetpack/compose/glance) to create app [widgets](/develop/ui/views/appwidgets/overview) on mobile to enable users to track progress in a glanceable way. Consider using dynamic color, optimizing across form factors, and taking advantage of in-app widget pinning APIs for better discoverability.\n- If supporting Wear OS, supplying a [tile](/training/wearables/tiles) or [complication](/training/wearables/tiles/complications) to enable similar glanceable experiences on the watch.\n- Offering creative ways to keep a user on track (such as notifications and nudges). Be sure to follow best practices for notifications, including [waiting to show the notification prompt](/develop/ui/views/notifications/notification-permission#best-practices) until the user has had time to familiarize themselves with the app, and using [notification bridging](/training/wearables/notifications/bridger) for paired phones and watches.\n- Improving [accessibility](/guide/topics/ui/accessibility) for all, such as adding [subtitles](/guide/topics/media/exoplayer/media-items#sideloading-subtitle) for video content and optimizing for accessibility on any secondary surfaces, such as [Wear OS](/training/wearables/accessibility).\n- Supporting playback to [Cast](https://developers.google.com/cast/docs/developers) devices for your fitness app's video content\n- Using [Google Play Billing](/google/play/billing) to let users purchase subscriptions\n\nBest-in-class health and fitness app\n------------------------------------\n\nA best-in-class health and fitness app builds on the previous recommendations to\ncreate a seamless multi-device experience for users, which may include:\n\n- Enabling easy sharing of workouts and accomplishments with [Sharesheet](/training/sharing/send)\n- Optimizing for foldables by supporting the [`HALF_OPENED`](/develop/ui/compose/layouts/adaptive/foldables/learn-about-foldables#foldable_postures) [state](/develop/ui/compose/layouts/adaptive/foldables/learn-about-foldables#foldable_postures)\n- Testing and refining voice assistant integrations on mobile, such as with [Google Assistant](/media/implement/assistant)\n- Supporting [Better Together](https://www.android.com/better-together) use cases, such as [Nearby\n Connections](https://developers.google.com/nearby/connections/overview)\n- Investing in seamless identity across surfaces such as [passkeys](/training/sign-in/passkeys), [One\n Tap](https://developers.google.com/identity/one-tap/android/overview), and [account linking](https://developers.google.com/identity/account-linking)\n- Offering [frictionless subscriptions](https://www.youtube.com/watch?v=ARuf97ncE4w)"]]