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

Reply
Developer
akirekadu
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?
Please use plain text.
Developer
joek
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; }

 


 

Please use plain text.
Developer
akirekadu
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!
Please use plain text.
Developer
smiley
Posts: 1,468
Registered: ‎07-14-2008
My Device: Z10

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?

Please use plain text.
Developer
akirekadu
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.
Please use plain text.
Developer
joek
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.
Please use plain text.
New Contributor
octal123
Posts: 3
Registered: ‎10-07-2013
My Device: 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  .

 

Please use plain text.
Developer
peter_strange
Posts: 19,604
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. 

Please use plain text.