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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
peter_strange
Posts: 17,663
Registered: ‎07-14-2008

Re: Alert on non-ui application

Probably best to start a new Thread with a new problem.

 

Do you have an 'enterEventDispatcher' in your background process?  You need on before you can use:

Application.getApplication().invokeLater(new Runnable() {

 

Actually you do not need this, so I would suggest you try the code directly.

Please use plain text.
Developer
H3llGhost
Posts: 67
Registered: ‎02-19-2009

Re: Alert on non-ui application

Hello,

 

I tried different ways, but sometimes I got nothing and another time I got an IllegalStateException.

I can't understand, what I can do to avoid that.

Please use plain text.
Developer
peter_strange
Posts: 17,663
Registered: ‎07-14-2008

Re: Alert on non-ui application

Start a new Thread.

Please use plain text.