BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-19-2009, 12:24 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 9000
PIN: N/A
Carrier: Vodafone
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: Dec 2008
Location: Philadelphia, PA, US
Model: 9530
PIN: N/A
Carrier: Verizon
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 9000
PIN: N/A
Carrier: Vodafone
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


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





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