I am trying to make an app for the Smartwatch 2 that listens to the watch's accelerometer sensor and sends the values to another app running on the phone. Basically, its always listening to the accelerometer, whether the user is using the watch or not. As such, I'd like to do this using only the ExtensionService, and possibly the Notification API in the future to send the watch alerts based on the accelerometer.
The problem is, I can't figure out how to properly add and listen to the Sensors without a ControlExtension (as in the SampleSensorExtension).
The problems seems to be that there is no way to add sensors to the AccessorySensorManager outside of the ControlExtension. If I try to do this in the onCreate(), onStartCommand() or even the onRegisterResult() methods, I can't find any available sensors. As such, DeviceInfoHelper.isSensorSupported(this, this.getPackageName(), SensorTypeValue.)) always returns false.
How to get and add all supported sensors within the ExtensionService? Can a Sony Engineer please shed some light on the situation and consider a potential solution? Thanks!