如何保持我的加速度计清醒屏幕关闭与索尼SmartwatchMN2 [英] How to keep my accelerometer awake with screen off with Sony SmartwatchMN2
问题描述
我想知道我保持清醒的加速度计与屏幕关闭的方法。
在开发者文档(SmartWatch_WP_1.pdf智能扩展SDK),我读到
I want to know the method of keeping my accelerometer awake with screen off.
In the developer documentation(SmartWatch_WP_1.pdf in Smart Extension SDK), I read that
- 传感器当控制暂停 停止
- 控制不是用ControlExtention#setScreenState(Control.Intents.SCREEN_STATE_OFF)暂停。
- 控制是通过用户的操作或时间的经过。 暂停
于是,我就用ControlExtention#setScreenState(Control.Intents.SCREEN_STATE_OFF)。
一分钟后,控制暂停和加速度计已停止。
但它的电源线连接时,没有暂停。
当然,我要保持清醒的加速度计在未连接电源线。
So I tried to use ControlExtention#setScreenState(Control.Intents.SCREEN_STATE_OFF).
After one minute, the control was paused and the accelerometer was stopped.
But it was not paused when the power cable connected.
Of course I want to keeping the accelerometer awake when power cable not connected.
我也试过激活锁定(PowerManager.FULL_WAKE_LOCK)和服务#startForeground,但我并没有得到很好。
I also tried the wakelock(PowerManager.FULL_WAKE_LOCK) and Service#startForeground, but i didn't get well.
是否有解决这个问题的方法呢?
Are there ways to resolve this problem?
我的配置是
- 设备
- 索尼Smartwatch折价MN2
- 0.1.A.3.7
- 1.2.37
谢谢!
推荐答案
我们正在寻找这个 - 我将回到这个线程,如果当我知道得更多。
We are looking into this - I will get back to this thread if and when I know more.
更新
在的SmartWatch应用程序的更新发布在谷歌3月14日(2013)播放。此更新包括上述传感器问题的修复程序。
An update of the SmartWatch application was published on Google Play on March 14th (2013). This update includes a fix for the above Sensor problem.
这篇关于如何保持我的加速度计清醒屏幕关闭与索尼SmartwatchMN2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!