BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Communication Handling using Service in Blackberry 4.5 (http://www.blackberryforums.com/developer-forum/205774-communication-handling-using-service-blackberry-4-5-a.html)

Shreyas 09-30-2009 08:45 AM

Communication Handling using Service in Blackberry 4.5
 
Hi all,

I am developing an app. (like google talk) which at phone boot-up starts a background service which is continuously running. This service interacts with UI (means any request to server is first sent from UI to service & from service to server) & any response is sent to UI through service.

What i know to start background service at boot up is "Create an alternate entry point and use that to start the background service. "

Code:

right click the project properties then go to Application tab, then check "Auto run on startup" / "System Module"
is it right?

In Android u can achieve this Service using system-defined Service class.
I want to do it (UI & Service) in one project. How to achieve this in Blackberry 4.5?

Any solution?

Shreyas 10-01-2009 04:19 AM

A background service is started at boot-up using "Create an alternate entry point and use that to start the background service. "


But how to achieve the interaction between Service & UI (means any request to server is first sent from UI to service & from service to server) & any response is sent to UI through service.

How to achieve this communication between Service & UI ?


& how to close the Servcie programatically which is started at boot-up with "Auto run on startup / System Module" ?


All times are GMT -5. The time now is 07:21 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.