Cải thiện chất lượng ứng dụng của bạn: từ tốt đến tốt hơn đến tốt nhất
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu này thể hiện tiến trình tối ưu của một ứng dụng sức khoẻ và thể dục từ nơi có khả năng bắt đầu đến vị trí tốt nhất. Mục này được thiết kế để giúp bạn suy nghĩ về việc mở rộng quy mô ứng dụng theo thời gian cũng như những tính năng cần triển khai. Mặc dù mỗi ứng dụng sức khoẻ và thể dục đều khác nhau, nhưng hãy cân nhắc các đề xuất sau để có được một ứng dụng tốt nhất.
Ứng dụng sức khoẻ và thể dục cơ bản
Một ứng dụng sức khoẻ và thể dục cơ bản đòi hỏi phải có những yếu tố chính để cung cấp trải nghiệm cơ bản tuyệt vời cho người dùng. Một số yếu tố chính bao gồm thực hiện những việc sau:
- Chỉ yêu cầu các quyền cần thiết để đáp ứng trải nghiệm mà người dùng mong muốn
- Cung cấp các chỉ số theo dõi có thể tuỳ chỉnh và dễ hiểu
- Cung cấp khả năng khám phá và duyệt xem nội dung trong ứng dụng
- Cung cấp các chế độ kiểm soát bài tập thể dục trong ứng dụng
- Nếu bạn theo dõi một phiên tập thể dục hoặc tác vụ khác diễn ra trong thời gian dài, hãy sử dụng dịch vụ trên nền trước và khai báo quyền FOREGOUND_SERVICE_HEALTH trong tệp kê khai.
- Tích hợp các tính năng hỗ trợ tiếp cận dễ sử dụng
Ứng dụng cải thiện sức khoẻ và thể hình
Phạm vi tiếp cận của một ứng dụng tốt hơn về sức khoẻ và thể hình sẽ bắt đầu tăng lên khi người dùng tiến bộ về cả thể chất và tinh thần trong hành trình chăm sóc sức khoẻ. Ứng dụng tốt hơn cũng cho phép người dùng dễ dàng đăng ký hồ sơ bằng cách sử dụng thông tin đăng nhập mạng xã hội hiện có và email của họ.
Việc triển khai các điểm cải tiến toàn diện hơn cho ứng dụng cũng là một cách hiệu quả để đẩy nhanh tốc độ tăng trưởng của ứng dụng. Hãy xem các tính năng sau đây là một cách để cải thiện hơn nữa ứng dụng của bạn:
- Tích hợp các nền tảng thứ hai, chẳng hạn như Wear OS (sử dụng Dịch vụ sức khoẻ trên Wear OS để thu thập dữ liệu). Sử dụng công nghệ Bluetooth năng lượng thấp (BLE) để gửi và nhận dữ liệu đến và từ thiết bị ngoại vi
- Nếu kết nối các thiết bị ngoại vi, hãy duy trì mức sử dụng pin. Nếu bạn đồng bộ hoá dữ liệu định kỳ, hãy sử dụng loại dịch vụ trên nền trước CONNECTED_DEVICE.
- Sử dụng Jetpack xem để tạo tiện ích ứng dụng trên thiết bị di động nhằm cho phép người dùng theo dõi tiến trình một cách có thể xem nhanh. Hãy cân nhắc sử dụng màu động, tối ưu hoá trên các hệ số hình dạng và tận dụng các API ghim tiện ích trong ứng dụng để tăng khả năng người dùng tìm thấy ứng dụng.
- Nếu hỗ trợ Wear OS, việc cung cấp thẻ thông tin hoặc chức năng để mang lại trải nghiệm xem nhanh tương tự trên đồng hồ.
- Cung cấp những cách sáng tạo để giúp người dùng đi đúng hướng (chẳng hạn như thông báo và lời nhắc). Hãy nhớ làm theo các phương pháp hay nhất về thông báo, bao gồm cả chờ hiển thị lời nhắc thông báo cho đến khi người dùng có thời gian để làm quen với ứng dụng và sử dụng tính năng cầu nối thông báo cho điện thoại và đồng hồ đã ghép nối.
- Cải thiện tính năng hỗ trợ tiếp cận cho mọi nền tảng, chẳng hạn như thêm phụ đề cho nội dung video và tối ưu hoá khả năng hỗ trợ tiếp cận trên mọi nền tảng phụ, chẳng hạn như Wear OS.
- Hỗ trợ phát trên thiết bị Truyền nội dung video của ứng dụng thể dục
- Sử dụng dịch vụ Google Play Billing để cho phép người dùng mua gói thuê bao
Ứng dụng sức khoẻ và thể dục hàng đầu
Ứng dụng sức khoẻ và thể dục tốt nhất được xây dựng dựa trên các đề xuất trước đó để tạo ra trải nghiệm liền mạch trên nhiều thiết bị cho người dùng, có thể bao gồm:
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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)"]]