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