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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 169
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
My Carrier: Vodafone NL

App running on the background without permission

Hello,

 

I created a very simple small app to understand more about Application State & Process States and how the states changes. I was following the documentation but I encountered a strange behaviour.

 

In summary, I used the custom Timer control in my app, started it on creationComleted  and let it run. Than I started changing the application state (minimizing it, opening another app, etc ...) but the Timer never stopedno matter what I did even tough the run_when_backgrounded permission was not specified in the project's bar-descriptor.xml file. It only stops after manually quiting the app.

 

Is this normal? If so, can anyone explain why/how?

The full source is attached.

Cheers!
Developer
Posts: 259
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

Re: App running on the background without permission

[ Edited ]

App doesn't stop when minimized. At least that's why experience showed.

New Developer
Posts: 10
Registered: ‎06-23-2014
My Device: Z10
My Carrier: Bell Canada

Re: App running on the background without permission

Bckground run => the timer working after you press the (x) to close the app. It is NOT the same as the active frame state.

Developer
Posts: 293
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: App running on the background without permission

Are you testing this in the simulator or on a real device?