简体   繁体   English

如何创建一个 Tizen 服务应用程序

[英]How to create a tizen service application

I need to WRITE senser data from samsung gearS2 to a .csv file continuously.currently i can do this but I need it to run this in the background which the gear user can't view or close.我需要将传感器数据从 samsung gearS2 连续写入 .csv 文件。目前我可以这样做,但我需要它在齿轮用户无法查看或关闭的后台运行它。 So I think I should use services but i can't understand the help given in tizen page.所以我认为我应该使用服务,但我无法理解 tizen 页面中给出的帮助。 So can anyone give me a simple example code for a tizen service application.. It would be really help full.那么任何人都可以给我一个简单的 tizen 服务应用程序示例代码..这真的很有帮助。 If you have any other methods which I can do this please mention them如果您有任何其他方法可以做到这一点,请提及它们

As you want to write a service for gear (wearable applications), you can write it using Tizen Web API features.当您想为设备(可穿戴应用程序)编写服务时,您可以使用 Tizen Web API 功能编写它。 Tizen Web API features support creating service and implementing selected features for wearable applications. Tizen Web API 功能支持为可穿戴应用创建服务和实施选定的功能。 Check the following URL: https://developer.tizen.org/development/tutorials/web-application/tizen-features/service-application#create检查以下 URL: https : //developer.tizen.org/development/tutorials/web-application/tizen-features/service-application#create

The link below is a tutorial for Tizen service application.下面的链接是 Tizen 服务应用程序的教程。 And you could find a template code from the Tizen SDK.您可以从 Tizen SDK 中找到模板代码。

https://developer.tizen.org/development/tutorials/native-application/application-framework/service-application https://developer.tizen.org/development/tutorials/native-application/application-framework/service-application

You may need to start your service application when the device boots up, however Tizen wearable (Gear S2) doesn't support that feature.您可能需要在设备启动时启动服务应用程序,但 Tizen 可穿戴设备 (Gear S2) 不支持该功能。 Tizen service applications cannot be set to start when the device boots up. Tizen 服务应用程序无法设置为在设备启动时启动。 I think it might be for saving power consumption.我认为这可能是为了节省功耗。

You can start your service application by adding an UI application that starts the service application.您可以通过添加启动服务应用程序的 UI 应用程序来启动您的服务应用程序。 For doing that, the user of device needs to start your UI application.为此,设备用户需要启动您的 UI 应用程序。 I think it is reasonable to protect user's private information from the malicious applications.我认为保护用户的私人信息免受恶意应用程序的侵害是合理的。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM