Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Contributor
boutros
Posts: 11
Registered: ‎06-07-2013
My Device: Blackberry playbook
Accepted Solution

Accelerometer turns off when screen is off

When testing my android app port on a Z10 the accelerometer turns off when the screen is off. A partial wake lock does not turn the sensor back on. A screen dim wake lock is required to turn the sensor back on. This behaviour forces the screen to be on all the time when an application requires using these sensors. 

 

An example would be a pedometer recording the steps throughout the day. In order for it to work the screen will have to be turned on by the application running in the background. This will cause a quick drain on the battery and is not an acceptable solution.

 

On  Android a partial wake lock is enough to keep the accelerometer running.

 

I believe this should be flagged as a deficiency, lots of the motion apps ported from Android will be blocked by this and my app port is one of them. 

 

Tested on Device Z10, model-number STL100-3. Software release 10.1.0.273

Please use plain text.
BlackBerry Development Advisor
bbenninger
Posts: 130
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Accelerometer turns off when screen is off

Ah, good catch.  I will log an issue to track this.

Please use plain text.
Contributor
boutros
Posts: 11
Registered: ‎06-07-2013
My Device: Blackberry playbook

Re: Accelerometer turns off when screen is off

Thanks very much. Is it possible to post a link to the tracking number to get the status and forecast resolution date?

 

Please use plain text.
Contributor
boutros
Posts: 11
Registered: ‎06-07-2013
My Device: Blackberry playbook

Re: Accelerometer turns off when screen is off

Has this issue been flagged? I just confirned it still occurs on the latest 10.2 beta load installed on a z10. 

Please use plain text.
BlackBerry Development Advisor
bbenninger
Posts: 130
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Accelerometer turns off when screen is off

There is an issue tracking it, yes.

Please use plain text.
Contributor
boutros
Posts: 11
Registered: ‎06-07-2013
My Device: Blackberry playbook

Re: Accelerometer turns off when screen is off

I just loaded the latest software release 10.2.0.424 and this issue has not been solved. Is there a forecast solution date on this problem? I can't access the bug tracking system, so wondering how long it would take to have it fixed.  Currently this is blocking my app as there does not seem to be a workaround available.

Please use plain text.
BlackBerry Development Advisor
bbenninger
Posts: 130
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Accelerometer turns off when screen is off

The fix will appear in the 10.2 MR, aka 10.2.1.

 

I submitted a fix for the issue recently.

Please use plain text.