10 Star 50 Fork 24

深圳市蛟龙腾飞网络科技有限公司/HarmonyOSAPP开发相关组件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

StepsCard

简介 • 本Codelab旨在使开发人员了解HarmonyOS中JS卡片的开发,包含卡片的创建、更新、删除功能,以文字的方式展现了用户当日行走的步数及路程,以进度条的方式展现了用户完成目标步数的进度,以线形图的方式展现了用户近四天的行走的步数统计,并实现了随着用户行走而更新卡片数据的效果。

安装要求 • 安装DevEco Studio • 设置DevEco Studio开发环境。DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 • 生成密钥并申请证书

用户指南 • 下载此项目 • 打开HUAWEI DevEco Studio,单击File> Open选择此StepsCard • 单击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? This Codelab is designed to enable developers to understand the development of JS cards in HarmonyOS, including card creation, update, and deletion functions. It displays the number of steps and distances that users have walked on the day in text mode, and displays the progress of users completing the target steps in a progress bar. A line chart is used to display the step count statistics of the user in the last four days, and the card data is updated as the user walks.

Installation requirements • Install DevEco Studio • 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 1.If you can directly access the Internet, just download the HarmonyOS SDK 2.If the network cannot access the Internet directly, it can be accessed through a proxy server • Generate secret key and apply for certificate

User guide • Download this Project • Open HUAWEI 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. • Currently, there is no way to ensure that the card service will not be destroyed by the system. Go to Phone Manager > App Startup Management > Pedometer Service Card, touch the slider on the right, and select Enable Background Activities to enable the background running permission. You can also enable Auto Start if necessary.

Licensing Please see LICENSE for more info.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jltfcloudcn/jump_to.git
git@gitee.com:jltfcloudcn/jump_to.git
jltfcloudcn
jump_to
HarmonyOSAPP开发相关组件
feature

搜索帮助