So while working on bug 965369 I instrumented the code in 
hal/gonk/GonkSensor.cpp and observed that the poppit  app receives orientation 
sensor results every 50ms from the moment it is launched.  These results seem 
to ultimately be translated into 'devicemotion' events for the app.

In contrast, other apps do not trigger my GonkSensor.cpp instrumentation in a 
repeated manner like this.

Can anyone tell me what we look for to see how we enable the  accelerometer 
sensor for an app?

I thought maybe registering for 'devicemotion' would do it, but poppit does not 
do that immediately.  It only does that the first time it needs acceleration 
information, which is much later during a game.

I also stripped the manifest down to just the name, icon, and invocation path 
using app-manager.  Still the poppit app spends a ton of time processing these 
sensor results.

Can anyone point me in the right direction?

Thanks!

Ben
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to