Languages

Menu
Sites
Language
Gear2 - Read accelerometer daat in background

Does application running in background is able to receive data from accelerometer? Unfortunately, I can't check it on real device, only way I can test my application with accelerometer is using Chrome browser

Responses

5 Replies
Marco Buettner

emulator?

Torres

When I'm testing application in emulator, I can't receive data from accelerometer (devicemotion, deviceorientation), when I'm testing application in Google Chrome I can't send application to background. And I can't test it on real device

Torres

Or you mean -- there are different kind of emulators? I'm using emulator from tizen-wearable-sdk

Marco Buettner
DeviceOrientation isnt supported by Tizen for Wearables currently...
Torres

This guy claims that something is working now

 

http://denvycom.com/blog/accelerometer-data-in-javascript-in-your-gear-2/

 

He use devicemotion, but I was able to make his example work under Chrpme only by replacing it with deviceorientation.