BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 02-26-2007, 01:20 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: India
Model: 8700g
Carrier: Airtel
Posts: 117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Foreground/background problem

Please Login to Remove!

Hi,
I am writing an application where on activating the app i want it keep running in the background.....and when i click bk on the icon i want it to come to the foreground.when i click click deactivate ......the application should exit the system.

i have gone through the methods of net.rim.device.api.system.Application.but am not sure how to use them.

pls help.

Meenal
__________________
Thanks
Meenal
Offline  
Old 02-26-2007, 09:58 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2007
Model: 9000
Carrier: SFR
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Did you use User interface ?
Did you use "j2me standard coding" ways or "Blackberry one" ?
Offline  
Old 02-26-2007, 07:28 PM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8100
Carrier: Rogers
Posts: 77
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could set the app to autostart, check properties of your project in the JDE. Make sure you have something that extends UiApplication so when you click the icon it comes to the foreground. Than you can use system.exit() to kill it when you want to.
Offline  
Old 03-01-2007, 02:28 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: India
Model: 8700g
Carrier: Airtel
Posts: 117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes I use the BB user interface.
__________________
Thanks
Meenal
Offline  
Old 03-01-2007, 11:00 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2007
Model: 9000
Carrier: SFR
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did this kind of stuff with j2me api (Thanks to a trick found on this forum ...).
the idea is to set your display to null:
display.setCurrent(null)
But I didn't try that on a bb api program.
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

2pcs Mini SD Card Module Memory Module Micro SD Card Module for Arduino ARM AVR
$0.89
2pcs Mini SD Card Module Memory Module Micro SD Card Module for Arduino ARM AVR  pictureGE FANUC IC697CPM915-CF PLC MODULE CPM915 W/ 1 MEG MEMORY CPU
$1475.0
GE FANUC IC697CPM915-CF PLC MODULE CPM915 W/ 1 MEG MEMORY CPU picture5*Dental 4.0 Mega pixels Intraoral Oral Camera 8G Memory Card U801 PAL format H
$488.87
5*Dental 4.0 Mega pixels Intraoral Oral Camera 8G Memory Card U801 PAL format H pictureMitsubishi Beijer IFC MC 02560B and Memory card 4MB
$525.0
Mitsubishi Beijer IFC MC 02560B and Memory card 4MB pictureGENUINE 4GB SanDisk Extreme ||| CompactFlash 4G CF Memory Card 30MB/S
$11.99
GENUINE 4GB SanDisk Extreme ||| CompactFlash 4G CF Memory Card 30MB/S picture






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