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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
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
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
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"