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

Java Development

Reply
Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Exiting a non-UiApplication

I use the accelerometer in the app, so I use that to make sure the device has finished loading before I try to open an AccelerometerListener.
Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

Re: Exiting a non-UiApplication

Hi thanks, your solution worked for me. I have a doubt, using System.exit(0) will close BlackBerry UI application completely  and it will not be running in the background right

 

Please spare some time to clarify me

 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Exiting a non-UiApplication

the System.exit will be executed directly after the startup if you uncomment it at this place.
in addition, i don't see where the enabled value is set, this most likely means it is false.

do i guess correctly that you want to achieve a background application that can be disabled (and enabled again) by clicking its icon?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

Re: Exiting a non-UiApplication

No its a UI Application which will be enabled using a app image in Application or Download folder in BlackBerry phone

 

Hope i am bit clear now, please help me

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Exiting a non-UiApplication

sonanaren, if you want to talk about a question you have: please open your own thread.
i did not see that digged this thread out, i thought CMY had some questions here.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter