简体   繁体   English

Tizen Samsung Gear S后台服务

[英]Tizen Samsung Gear S Background Service

I'm attempting to create and app that would rely on a background service to monitor some of the sensors on the device and alert the user accordingly. 我正在尝试创建和应用程序,该应用程序将依赖于后台服务来监视设备上的某些传感器并相应地警告用户。 In tizen 2.3 it appears that this can be done by creating a tizen:service and bundling it with the app. 在tizen 2.3中,似乎可以通过创建tizen:service并将其与应用捆绑在一起来完成。 However all the research I've done shows that tizen 2.3 isn't available on any of the tizen wearables yet. 但是我所做的所有研究表明,tizen 2.3尚未在任何tizen可穿戴设备上使用。

Are there any other ways of getting this sensor data in the background (something that works on tizen 2.2) or is there a projected date for when tizen 2.3 will be available on the Samsung Gear S? 是否还有其他方法可以在后台获取此传感器数据(某些功能适用于tizen 2.2),或者是否计划在三星Gear S上使用tizen 2.3?

Two things have to be done. 必须做两件事。 1) in config.xml of your project, go to Tizen tab and set background-support to enable 2) In your code have this line tizen.power.request("CPU", "CPU_AWAKE"); 1)在项目的config.xml中,转到Tizen选项卡并设置background-support启用2)在您的代码中,此行tizen.power.request(“ CPU”,“ CPU_AWAKE”);

To automatically start Service-apps, a partner level certificate is needed. 要自动启动Service-apps,需要合作伙伴级别的证书。

  1. Tools > Certificate Manager. 工具>证书管理器。
  2. Give any name as "Certificate profile name" > Next. 输入任何名称作为“证书配置文件名称”>“下一步”。
  3. Choose "Create a new author certificate" > Next. 选择“创建新的作者证书”>“下一步”。
  4. Fill all entries > Next. 填写所有条目>下一步。
  5. Check "Privilege level", and select "Partner" > Finish. 检查“权限级别”,然后选择“合作伙伴”>“完成”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Gear S3:Tizen本机服务:在后台监听关键事件 - Gear S3: Tizen native service: listen for key event in background 三星 Gear Fit 2 Tizen 模拟器 - Emulator for Samsung Gear Fit 2 Tizen 在后台在Samsung Gear S2中使用加速度计 - Using accelerometer in Samsung Gear S2 in background Tizen-Samsung Gear Live上的Hello World - Tizen - Hello World on Samsung Gear Live 我正在尝试在文本文件中为Samsung Gear S的Tizen可穿戴式应用程序写入一些数据 - I'm trying to write on a text file some data in a Tizen wearable application for Samsung Gear S 智能手表Tizen Samsung Gear S3智能手表本机应用程序以及通过蓝牙提供的手机伴侣应用程序 - Smart Watch Tizen Samsung Gear S3 smartwatch native app with Phone companion app over bluetooth 在三星Gear S3前沿上访问心率监测器的“权限被拒绝” Tizen Web应用程序错误 - “Permission denied” Tizen web app error accessing the heart rate monitor on a Samsung Gear S3 frontier 三星gear2 Tizen。 如何启动电池电量计 - Samsung gear2 Tizen. How to launch Battery meter 通过Tizen Studio在Samsung Gear Fit 2上安装应用程序 - Install Applications on Samsung Gear Fit 2 via Tizen Studio 如何将数据从Android App发送到Samsung Gear(Tizen) - How to send Data from Android App to Samsung Gear (Tizen)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM