[英]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,需要合作伙伴级别的证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.