如何将Samsung Gear Steps集成到android应用程序中? [英] How to integrate Samsung Gear Steps in android Application?

查看:139
本文介绍了如何将Samsung Gear Steps集成到android应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的应用程序中的步骤集成Samsung Gear设备,还包括颚骨步骤和不合适的步骤.我看过几件事,例如三星齿轮网站,但没有找到对我有用的东西.

解决方案

对于移动android设备和Samsung Gear设备之间的连接和数据传输,附件协议.因此,此处可用的选项是使用附件SDK 用于Android移动设备和Tizen可穿戴设备.

Tizen为第三方提供 HumanActivityMonitor 开发人员检索计步器步数数据.

我已经在Tizen平台上开发了一个示例应用,用于读取齿轮中的计步器步数数据,并将数据发送到Consumer Android移动应用,同时通过 Samsung Gear Manager连接了移动设备和可穿戴设备.它只是对所引用站点上可用的示例应用程序的自定义.

我正在与安装程序共享tizen Web应用程序的代码(.wgt)文件.如果您现在对Tizen开发不感兴趣,则可以使用wgt文件将应用程序直接安装到Samsung Gear.

我还将与安装程序共享android应用程序的代码(.apk)文件.您可以尝试在设备之间进行示例传输,并根据需要在android平台上执行代码.我已经在我的设备上测试了这些应用程序,它们运行良好,尽管发生了一些数据不一致的情况.

Zip文件链接:

Android消费者应用程序(apk)

Android消费者应用程序(代码)

Tizen提供商应用(wgt)

Tizen提供程序应用(代码)

https://drive.google.com/file/d/0B6KEP_6UcxrATllCWTlmeUh1M28/view?usp =分享

人类活动监控指南

附件SDK

请阅读《附件指南》和《 HumanActivityMonitor指南》以了解详细实现,您将在此处找到简单的说明.

I want to integrate Samsung Gear device for steps in my application, also jawbone Steps and misfit Steps. I've looked at several things, like the Samsung Gear Site, but found nothing that works for me.

解决方案

For connection and data transfer between mobile android device and Samsung Gear device , Accessory Protocol is defined. So, the option available here is using Accessory SDK for Android mobile and Tizen wearable.

Tizen provides HumanActivityMonitor for 3rd party developers to retrieve Pedometer step count data.

I have developed a sample app in Tizen platform for reading pedometer step count data in gear and send the data to Consumer Android mobile app while the mobile and wearable is connected through Samsung Gear Manager. Its just a customization over the sample apps available on the sites reffered.

I am sharing the code of the tizen web app along with the installer(.wgt) file. If you are not interested in tizen development right now, you may install the app directly to the Samsung gear using the wgt file.

I am also sharing the code of the android app along with the installer(.apk) file. You may try a sample transmission between the devices and do your code on android platform as necessary. I have tested the apps on my devices and they are working good, though some data inconsistency occurs.

Zip file link:

Android consumer app (apk)

Android consumer app (code)

Tizen provider app (wgt)

Tizen provider app (code)

https://drive.google.com/file/d/0B6KEP_6UcxrATllCWTlmeUh1M28/view?usp=sharing

Human activity monitor API

Human Activity Monitor Guide

Accessory SDK

Please read the Accessory guide and HumanActivityMonitor guide for details implementation, you would find simple explanation there.

这篇关于如何将Samsung Gear Steps集成到android应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆