01-25-2009 11:40 PM
Storm JDE 4.7.
This app just creates a simple PopupScreen and calls pushGlobalScreen to create and display it from a UiApplication.
I get a security exception on the device but it works fine on the simulator.
I did a javaloader -u eventlog and it gave me the following at the end:
SecurityException
Any ideas as to what created this and why it's not on the simulator????
Thanks
-Donald
Solved! Go to Solution.
01-26-2009 01:02 AM
Solved it, but raises another question.
So, it turned out that I was looking at older documentation and pushGlobalScreen was deprecated and the latest version has a flags argument that wasn't being set correctly.
Now, when I set this flags argument to pushGlobalScreen to UiEngine.GLOBAL_MODAL, a message told me that the pushGlobalScreen call had to be called from within an event handler. Fair enough, so I used the UiEngine.GLOBAL_QUEUE flag instead and it worked.
Now, due to another bug, the code had no exit point, and this window stayed on the screen. I had to use javaloader -u erase -f test to stop my module on the device. This caused the system to do a bunch of recovery that took about 10 minutes. Is this the best way to do that?
i.e. Is there any better way then this to kill or stop a runaway module in a device?
Second question. Is there a way to control or eliminate the border area in a popupScreen? I wanted to create a bitmap (with alpha blended pixels) where I have control over the entire rectangle.???
Thank you
-Donald
01-26-2009 02:37 AM
Don't know the answer to the first question, and am also interested in hearing the answer.
But as for the second question: use
protected void applyTheme() {
}
to override the theme (which draws that border around the popup).