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: 56
Registered: ‎07-14-2008
My Device: Not Specified
Accepted Solution

Storm orientation?

There were messages in here about this; apparently they've been deleted.

 

It looks like information about the storm's orientation should be available via the AccelerometerData and related objects.  However, it looks like they are not fully implemented yet.  Is there another way?  

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Storm orientation?

Take a look at Display.getOrientation()

 

Developer
Posts: 56
Registered: ‎07-14-2008
My Device: Not Specified

Re: Storm orientation?

Hey Doug, thanks for that.  It gets me closer but what I'm looking for is notification of an orientation change.
Developer
Posts: 176
Registered: ‎11-06-2008
My Device: Not Specified

Re: Storm orientation?

just implement sublayout in your screens and it will be called when the device rotates

 

protected void sublayout(int width, int height) { super.sublayout(width, height); //calculate some new ui sizing dimensions, etc. }

 

 

 

Highlighted
Developer
Posts: 56
Registered: ‎07-14-2008
My Device: Not Specified

Re: Storm orientation?

Works like a champ.  Thanks.