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

BlackBerry Push Development

Reply
Contributor
sanju_sai
Posts: 21
Registered: ‎02-21-2012
My Device: Blackberry 8520
My Carrier: T-Mobile

How can run background service application in blackberry

How can i run background service application and UIApplication same time in blackberry. i would like to run the background services when application icon is clicked and not by auto-run on start up(ie during startup of the device) plz reply fast friends .......... thanks in advance.....
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How can run background service application in blackberry

Any services in particular?

 

The BBOS is multithreaded, so you can just spin off a new Thread with whatever actions you would like it to take.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
sanju_sai
Posts: 21
Registered: ‎02-21-2012
My Device: Blackberry 8520
My Carrier: T-Mobile

Re: How can run background service application in blackberry

thank you very much gbeukeboom for your fast response.......... Actually gbeukeboom, i would like to know wheather the background services can be run with the help of an alternate entry point? Any idea? As u said it works fine if we use Thread, but wheather its gonna affect the performance of the the Application, if we use multithreading?
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How can run background service application in blackberry

You can launch a separate thread from any entry point of your application. 

 

Performance impact really depends on the amount of work being done in your second thread. You could use the Profiler tool (integrated with the Java Development Tools) to see the performance hit.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
sanju_sai
Posts: 21
Registered: ‎02-21-2012
My Device: Blackberry 8520
My Carrier: T-Mobile

Re: How can run background service application in blackberry

Thank you very much gbeukeboom Anyways i wil try it out and see wheather it works.......
Please use plain text.