android - g sensor(accelerometer) curve on HTC One M8 -


i used extract accelerometer data android sdk on samsung galaxy s4, , encounter strange problem when change platform htc 1 m8.

here statement experiment: once move device place place b straight(negative direction of device), read accelerometer data , compute displacement between , b. curve of acceleromter data on s4 correct. contains 2 pick different sign , shape 's' lie on floor.

but when use m8, give me curve wrong obviously. looks 'w' p.s. motion , program of 2 totally same.

can give me reason difference? g-sensor on m8 problem? i'm stuck on it. thanks.

from understand trying use moves app, due lack of support of accelerometer when device's display off.

i looking way change , if find update here.

update:

it seems due new hardware not being supported yet. quote leads me believe "...are low-powered, listening "smart sensors." accelerometers nothing new, htc's can used apps day long without significant drain on the battery (as don't fire processor etc). htc's opened api these -- dubbed htc's smart sensor hub -- app developers able hook information directly."


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -