#DistributedHealthDemoPhone 简介 • 此Demo展示如何在手机上调用相应接口,获取手表断的心率和步数等健康数据,配合分布式健康手表端应用,可以实现数据跨设备浏览以及接收心率异常的通知
安装要求 • 安装DevEco Studio • 设置DevEco Studio开发环境。DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 • 生成密钥并申请证书
用户指南 • 下载此项目 • 打开HUAWEI DevEco Studio,单击File> Open选择此项目 • 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 • 单击Run> Run 'entry'以运行hap包
注意 • 您可以选择在模拟器或真机上运行hap软件包。 • 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。
许可 请参阅LICENSE文件以获得更多信息。 What is it? HarmonyOS supports application deployment based on Ability. Ability can be classified into Feature Ability (FA) and Particle Ability (PA). In this document, the Codelab will use Page Ability and Service Ability for development. Page Ability is the only template supported by the FA to provide the capability of interacting with users. Service Ability is a type of article Ability (PA) to provide the capability of running tasks in the background. In addition, you will use the common Java UI layout DirectionalLayout in HarmonyOS, the capabilities of starting the PA service across devices, and synchronizing data across devices to implement a distributed HarmonyOS sports and health application. This demo enables real-time transmission of heart rate and step count data from watch A to mobile phone A and real-time exception notification. In addition, health data from mobile phone A can be shared with mobile phone B.
Installation requirements • Install DevEco Studio and Node.js • Set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool. The development environment can be configured according to the following two situations
User guide • Download this project • Open DevEco Studio, click File> Open> Then select and open this Project • Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package • Click Run> Run 'entry' to run the hap package
Note • You can choose to run the hap package on the simulator or the phone. • If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs.
Licensing Please see LICENSE for more info.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。