BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-30-2009, 08:45 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: Strom
PIN: N/A
Carrier: Vodafone
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Communication Handling using Service in Blackberry 4.5

Please Login to Remove!

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?

Last edited by Shreyas : 09-30-2009 at 09:02 AM.
Offline  
Old 10-01-2009, 04:19 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: Strom
PIN: N/A
Carrier: Vodafone
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question

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" ?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

CR306C003 NEW IN BOX SZ 1, 240V Coil General Electric Starter - Free UPS Ground
$150.0
CR306C003 NEW IN BOX SZ 1, 240V Coil General Electric Starter - Free UPS Ground pictureCR306F103 NEW IN BOX SZ 4 240V Coil General Electric Starter- Free UPS Ground
$1025.0
CR306F103 NEW IN BOX SZ 4 240V Coil General Electric Starter- Free UPS Ground pictureGrainger Dayton 6GNZ6 Contactor 1 pole, 40 amp, 110-120 VAC coil (W-60)
$16.49
Grainger Dayton 6GNZ6 Contactor 1 pole, 40 amp, 110-120 VAC coil (W-60) pictureAllen-Bradley 100-C12*10 Ser A Contactor Coil 600V 25A encl.
$19.99
Allen-Bradley 100-C12*10 Ser A Contactor Coil 600V 25A encl. pictureLot Of 2 Allen-Bradley 100-C12*10 Ser A Contactor Coils 600V 25A encl.
$49.99
Lot Of 2 Allen-Bradley 100-C12*10 Ser A Contactor Coils 600V 25A encl. picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.