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: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

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.

Developer
Posts: 79
Registered: ‎02-19-2009
My Device: Not Specified

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.

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

Re: Alert on non-ui application

Start a new Thread.