01-07-2011 11:14 PM
I've been running into this annoying IllegalStateException these days, when trying to invoke setText() method of some fields. Interestingly, it used to work a few days before.
Now, even if I synchronize the event lock before doing so, I still get the IllegalStateException.
Can someone help on this?
01-08-2011 12:34 AM
In fact, I'm trying to change the screen of another application, which is stored in RunTimeStore.
I've tried the code example in KB article http://supportforums.blackberry.com/t5/Java-Develo
Still not working.
01-10-2011 04:53 AM
It would be useful to know the description of the IllegalStateException. I suggest you print it out when you get one of these, it will help in the diagnosis.
In this case, I'm pretty sure the problem is caused because you are trying to update the Screen associated with another application. If you want to update that Screen you will have to 'context switch' to that other application. The easiest way to do this is to send the other Application a Global Event, and have the other Application, as a Global Event Listener, update its own screen.