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
webmasterpdx
Posts: 558
Registered: ‎11-25-2008
My Device: Not Specified
Accepted Solution

Problem with PopupScreen on BB storm device

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
        No detail message
        net_rim_cldc-8
         GlobalScreenManager
         <private>
         0x7156
        net_rim_cldc-8
         GlobalScreenManager
         push
         0x7792
        net_rim_cldc-10
         UiEngineImpl
         pushGlobalScreen
         0x9866
        net_rim_cldc-10
         UiApplication
         pushGlobalScreen
         0x8223
        test
         mytest

 

Any ideas as to what created this and why it's not on the simulator????

 

Thanks

-Donald

Developer
webmasterpdx
Posts: 558
Registered: ‎11-25-2008
My Device: Not Specified

Re: Problem with PopupScreen on BB storm device

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

Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Problem with PopupScreen on BB storm device

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).

 

 



"Listen carefully, I shall say this only once"