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
Contributor
Posts: 12
Registered: ‎10-10-2011
My Device: Torch 9800
My Carrier: Vodafone

Create app that does not display a screen

Hi all,

 

I want to create an application that will just run a task once it has been selected in without actually trying to display something. Is this possible and if so how should I go about it?

 

Thanks in advance

New Contributor
Posts: 4
Registered: ‎09-05-2011
My Device: 9000
My Carrier: Orange France

Re: Create app that does not display a screen

[ Edited ]

What if you don't make your Main class inherit UiApplication?

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

Re: Create app that does not display a screen

What kind of task are you trying to run. There are two ways to do this that I can think of. You can insert a menu item or inherit from application instead of UiApplication (but I'm not sure how to get the icon to display - maybe overriding acceptsForeground).