提升应用质量:从优良到更好,再到最好
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本文档介绍了健康与健身应用从可能的初期发展到卓越的理想进展。旨在帮助您考虑随着时间的推移扩展应用规模,以及要实现哪些功能。虽然每个健康与健身应用都不同,但请考虑这些建议,打造一流的应用。
基本的健康与健身应用
为了向用户提供出色的基础体验,基本的健康与健身应用必须包含一些关键元素。其中一些关键元素包括执行以下操作:
更出色的健康与健身应用
当用户在其身体和心理健康之旅上取得进展后,一款更好的健康与健身应用便会开始扩大其覆盖面。更好的应用还能让用户使用现有的社交媒体凭据和电子邮件地址轻松注册个人资料。
对应用进行更全面的改进也是加快应用业务增长的绝佳方式。不妨考虑使用这些功能来进一步增强您的应用:
一流的健康与健身应用
一流的健康与健身应用以之前的建议为基础,旨在为用户打造无缝的多设备体验,其中可能包括:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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)"]]