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
Posts: 140
Registered: ‎02-05-2009
My Device: 8900
My Carrier: Airtel India

Can we hide Application Icon programatically?

[ Edited ]

Hi all,

 

Please help me out. i m stuck here.

I am making an application which takes some input from user and then goes to background application forever.

I am using UiApplication.getApplication().requestBackground();

But Application icon is still visible. Can anybody tell me, How can i hide that icon too from my program.

 

Please also suggest me another way to do tha same.,

 

 

Thanks a lot.

 

 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Can we hide Application Icon programatically?

You can designate the program as a "system module" in the project properties.

 

Of course, this means that the program must also be "auto-run' and the user will not be able to find the icon at all.

 

 

Developer
Posts: 140
Registered: ‎02-05-2009
My Device: 8900
My Carrier: Airtel India

Re: Can we hide Application Icon programatically?

[ Edited ]

Thanks for reply. But i think you did not get my question.

 

My question is "Can we hide Application icon from Application code at run time not from the System Module"

 

I have to make an application which takes user's input and then it has to go on background forever.

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Can we hide Application Icon programatically?

Programmatically no, but you can designate it as an application or system module and still use it to capture input then go to the background.

Developer
Posts: 140
Registered: ‎02-05-2009
My Device: 8900
My Carrier: Airtel India

Re: Can we hide Application Icon programatically?

Thnaks ...i got your point.

Plz can you tell me , how to pass user's input value to another backgroung application through UI application.

Using alternate entry pint.

 

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Can we hide Application Icon programatically?

[ Edited ]

You would have to store a reference to the background app in the RuntimeStore or use GlobalListener to pass the information back from the UI once it is captured. I've never used GlobalListeners but for the RuntimeSore it would be similar to this:

 

 

public class MyBckgrndApp extends Application {

static void main(String [] args){

if( args.length > 1 ){
MyBckgrndApp app = new MyBckgrndApp();
RuntimeStore.getRuntimeStore().put( app, KEY );
app.enterEventDispatcher();
} else {
.... have your background app start the app again to create
ui and use the RuntimeStore to access the background app
to pass data back
}

}

public MyBckgrndApp(){
.... startup your background process ...
}
}