02-10-2010, 04:45 AM
Join Date: Feb 2010
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | LWUIT IllegalArgumentException when returning to app
Please Login to Remove!
I have ported a J2ME app to BlackBerry, 90% of it went pretty smooth with only minor adjustments required here and there. I have however noticed some random behaviour on the BlackBerry 9500 (only model tested on so far).
To reproduce the error:
- Open my application (basically a modifed version of the LWUIT demo app)
- Press the Call Button on the handset (green button)
- Press the Back button
- Upon returning to my application a LWUIT dialog pops up stating that there is an IllegalArgumentException. The exact wording of the errors is:
Error - An internal application error occured: java.lang.IllegalArgumentException: Component is already contained in Container: (insert lots or weird variables here)
Now it looks like the framework is trying to repaint or something the screen when it gets focus. What eventually happens on another screen is the exception occurs and then the main screen is empty with only the logo displaying.
Any ideas on how to fix this, or at least not show the dialogs? The application doesn't crash or anything as yet, but it is quite annoying.