BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-19-2009, 12:24 AM   #1
jobincantony
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 9000
PIN: N/A
Carrier: Vodafone
Posts: 17
Question Remove iCon from Riibbon field

Please Login to Remove!

Hi,

I have developed an autostart application ( for Hard reset and Soft reset )
with 6 screens.

To enable this feature in “Soft reset”, application should have a background thread working even after application exit. On soft reset application background thread will get notification from blackberry OS and it can handle soft reset as normal application start.

I have couple of queries.

1)Is there any API available for removing all the screens from the Application display Queue by a single call? Now I am checking the screen count and removing the screen one by one.


2) I would like to remove the application icon from the Device Ribbon () after clearing the screens from queue. Is there any method to remove the icon from Ribbon field?

Thank you

Jobin

Last edited by jobincantony; 02-19-2009 at 12:25 AM..
Offline  
Old 02-19-2009, 10:30 AM   #2
joekr
New Member
 
Join Date: Dec 2008
Location: Philadelphia, PA, US
Model: 9530
PIN: N/A
Carrier: Verizon
Posts: 2
Default

for your second question, you can override acceptsForeground() in your class that extends UiApplication -- if you return false, it won't show up in the ribbon:

Code:
protected boolean acceptsForeground() {
  return _showInRibbon;
}
Offline  
Old 02-24-2009, 02:38 AM   #3
jobincantony
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 9000
PIN: N/A
Carrier: Vodafone
Posts: 17
Default

Hi, Thank you for your reply.

Actually my requirement is to remove the ICON from Device Ribbon () after clearing the screens from queue. that means the application is running in the background...

I need to keep my application running for detecting the SOFT Reset and perform the "Application start-up on device start up."

I am overriding the activate() method for doing the start-up activities. If I have override the acceptsForeground() method and it will return false, then the activate method will not be invoked...

any help...
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog picture

Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog

$422.50



Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal picture

Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal

$156.00



HealthKit 4802 Computer Oscilloscope Heath Computer Systems picture

HealthKit 4802 Computer Oscilloscope Heath Computer Systems

$149.99



1PC × PR ELECTRONIC 2211 ANALOG CALCULATOR PR2211EC2A2 Ser.No. 885175 picture

1PC × PR ELECTRONIC 2211 ANALOG CALCULATOR PR2211EC2A2 Ser.No. 885175

$85.00



Columbus Instruments BP-2 Veterinary Automatic Blood Pressure Monitor picture

Columbus Instruments BP-2 Veterinary Automatic Blood Pressure Monitor

$199.94



Measurement Computing PCI-DAS6402/16 PCI Data Acquisition Board - New picture

Measurement Computing PCI-DAS6402/16 PCI Data Acquisition Board - New

$1199.97







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