开发者

Background blackberry UI Application

I am creating a blackberry application that get settings for the first time, and always ru开发者_运维知识库ns in the background (run on startup). So, whenever I click on the application icon, it does not show any screen if the settings is already configured.

I used UiApplication.getUiApplication().requestBackground(); but if I clicked the application icon, it opens the settings screen (only screen in my application) as well the application running.


You will need to partition your application into two portions, one that can show the UI and the another that would run in the background. Both the applications share the same code but have different entry points, which is known as "Alternate entry point" and can be set in JDE or Blackberry eclipse plugin.

Now, background application runs from alternate entry point and does not show any UI. You can run threads from here and listen for events of interest.

Foreground application can verify if your application specific "settings" have been populated; if so, it could exit immediately. If not, show UI and collect the "settings".

Hope this answers. Let me know if you have any further questions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜