索尼Xperia Smartwatch折价MN2如何获得加速度值? [英] Sony Xperia Smartwatch MN2 how to get the accelerometer value?

查看:155
本文介绍了索尼Xperia Smartwatch折价MN2如何获得加速度值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我研究过索尼Smartwatch折价MN2一周的夫妇。我还是不明白如何利用自己的SDK来获得Smartwatch折价的加速度计值。我已经阅读文件。但它并不能说明太多。这个例子传感器code运行也,但它仅表现为READ ME。我想知道如何从Smartwatch折价的加速度计值。如果有人知道并愿意帮助我。我会很感激。

I have studied Sony Smartwatch MN2 for couples of week. I still don't get how to use their SDK to get the value from Smartwatch's accelerometer. I already read the documents. But it doesn't explain too much. The example sensor code run also, but it only showed "READ ME". I want to know how to get the value from Smartwatch's accelerometer. If someone know how and willing help me. I will be very thankful.

推荐答案

该SampleSensor扩展SDK中是怎样的传感器API作品的一个很好的例子,并显示了基础如何:

The SampleSensor extension in the SDK is a great example of how the sensor API works and shows the basics on how to:


  • 创建一个AccessorySensorEventListener

  • 注册使用AccessorySensorManager监听器

  • 实施AccessorySensorEventListener接口的 onSensorEvent 方法来从的SmartWatch传感器数据。

  • create a AccessorySensorEventListener
  • register the listener using the AccessorySensorManager
  • implement the onSensorEvent method of the AccessorySensorEventListener interface to get the sensor data from the SmartWatch.

如果您安装的例子扩展,您将需要启动它的的SmartWatch,然后将看到的SmartWatch显示的三个轴的传感器数据。

If you install the example extension, you will need to start it on the SmartWatch and will then see the sensor data of the three axis displayed on the SmartWatch.

自述文本显示在手机上的延伸设置,是不是真的,你在找什么。

The "READ ME" text is displayed in the extension settings on the phone, and is not really what you are looking for.

这篇关于索尼Xperia Smartwatch折价MN2如何获得加速度值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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