Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 52
Registered: ‎07-17-2008
My Device: Not Specified
Accepted Solution

Is it possible to hide application icon from application switcher?

I have flagged my application as system module and able to hide the icon getting created.  The application auto-starts in the background when the device is started.  The only problem I am facing is the user is able to see the application icon in the app switcher.  Is there a way to hide it from there?
Developer
Posts: 38
Registered: ‎12-06-2008
My Device: 9530

Re: Is it possible to hide application icon from application switcher?

In your class that override UiApplication, override the acceptsForeground() function:

 

 

// This keeps the background instance from showing up on the ribbon. protected boolean acceptsForeground() { return false; }

 


 

Developer
Posts: 52
Registered: ‎07-17-2008
My Device: Not Specified

Re: Is it possible to hide application icon from application switcher?

That was it.  Kudos Sir!
Developer
Posts: 1,638
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Is it possible to hide application icon from application switcher?

i tried this but now i can not launch the app on the HomeScreen.

the app doesnt appear in the Ribbon which is correct but cant launch the app with the GUI.

 

this is suppose to be like this?

Developer
Posts: 52
Registered: ‎07-17-2008
My Device: Not Specified

Re: Is it possible to hide application icon from application switcher?

Yes, by overriding that method and returning false, you are essentially hiding the UI.  I am not aware of a way to hide the app only from app switcher.
Developer
Posts: 38
Registered: ‎12-06-2008
My Device: 9530

Re: Is it possible to hide application icon from application switcher?

It sounds like maybe using alternate entry points might be a way to work around this.
New Contributor
Posts: 3
Registered: ‎10-07-2013
My Device: 9810
My Carrier: 9810

Application Icon Hiddden

Hello everyone,

i want to hide App  icon from all panel when i click on button then screen automatically close and hide app icon

from all panel please tell me any solutions for that task  .

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Application Icon Hidden

I am not aware of a way to add or remove an application icon for an application, from inside an application.  AFAIK, only users can do that. 

 

You might be able to create your application in two parts, so that the icon is in one part, and the other part actually does the processing.  Then your icon module could be deleted or installed and so the icon would disappear and reappear.  But this approach will only work for applications that you have control over.