Android Wear 的加速器和陀螺仪和心率可以连续运行 超过10 分钟吗?

Can Android Wear's Accelerator and Gyroscope and Heart rate continuously run more than 10 minutes?

我想记录超过 10 分钟的活动传感器和心率传感器数据,但应用程序总是在屏幕关闭时关闭。你有什么建议让应用程序始终保持激活状态超过 10 分钟吗? 感谢您的帮助~~

感谢@solosodium,他是对的,如果您同时使用服务和屏幕开启选项,Android Wear 可以一直工作直到断电。

现在,有一个新的问题:如何降低功耗?例如:如果屏幕关闭,如何继续收集?

您想在 Service 而不是 Activity 中做任何持久的工作(例如传感器数据采集)。两者通信见this for the difference of the two. Service will do the sensor data recording in the background, and your Activity needs to talk to the Service to get and visualize the data. See this