1

I have worked on an app like a birthday reminder. Here i need a UI and background thread simultaneously: a thread that starts running after installing app and is always running in background, not affected by the UI. Opening or closing the UI should not affect the thread. It runs until the app is uninstalled. The thread always checks for updates in a database every 1 minute, silently in background .

The problem is when I close the UI, the thread is stopped automatically, and when i again open the app UI, it starts again.

Why is this? I want my thread always running..

Nate
  • 31,017
  • 13
  • 83
  • 207
sachin
  • 19
  • 2
  • 1
    Take a look at [this blackberry document](http://devblog.blackberry.com/2010/06/super-apps-java-series-running-in-the-background-part-1/), and maybe [this one, too](http://supportforums.blackberry.com/t5/Java-Development/Set-up-an-alternate-entry-point-for-an-application/ta-p/444847), which discuss setting up a background service, in addition to a normal UI application. – Nate Apr 20 '13 at 21:03
  • create a Alternate Entry pint App. – Rince Thomas Apr 22 '13 at 05:46
  • refer http://stackoverflow.com/questions/9265919/how-to-access-main-application-from-alternate-entry-point-on-blackberry and http://stackoverflow.com/questions/3921029/how-to-setup-alternate-entry-point-in-blackberry-application – Rince Thomas Apr 22 '13 at 05:47

0 Answers0