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

Adobe AIR Development

Reply
Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc
Accepted Solution

music app mute while screen go dark.

there's a music project by my hand.

 

but  the app always mute when screen goes dark ( the playbook enter  the standy mode) .

 

how to fix it by coding or  config ?

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: music app mute while screen go dark.

If the screen should be forced to stay on in your app (unlikely) then you want to investigate NativeApplication.nativeApplication.systemIdleMode.

 

If it's fine if the screen goes dark and the PlayBook enters standby mode, but you'd like your app to continue playing music even then, you want to investigate QNXSystem.system.inactivePowerMode.

 

I posted a while back with a summary of that feature and a link to the Knowledge Base article on it.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Contributor
Posts: 25
Registered: ‎05-13-2011
My Device: BlackBerry Storm
My Carrier: AT&T

Re: music app mute while screen go dark.

the stand by mode on this tablet is set specifically for the multi-tasking feature and extend battery life... so the best thing you can do is tap the gear icon (top right corner) and tap SCREEN, after that, change the stand by time-out to 5 minutes...but it still going on stand by mode... Hope it helps!

Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc

Re: music app mute while screen go dark.

@Anavilchez

 

cuz  most of the mp3 song is long than 4 minites.  :-)

so the SCREEN config  is't  useful

 

Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc

Re: music app mute while screen go dark.

@ peter

 

thank your advice

 

i add "
       <inactivePowerMode>throttled</inactivePowerMode>"

in xml.  recompile   and  tested , 

 

 

 it work fine till now.

Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc

Re: music app mute while screen go dark.

i also find that, the playbook won't enter the standby mode when you let the screen facing the desktop , that is , the backcover is facing up is it documented by RIM?? or i have a mistake
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: music app mute while screen go dark.

I just flipped mine over and 30s later, per my settings, it went into standby. I think you probably made a mistake, but stranger things have happened... try to reproduce the effect.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Highlighted
Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc

Re: music app mute while screen go dark.

I test  it again ,

 

 the playbook really won't enter standy mode on OS 1.0.1.1710 ,when put it screen facing the desktop .

 

Could anyone who have the 1.0.1.1710 playbook OS   verify it ?

 

or this function dismissed in new OS 1.0.3.1868 ?