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: 55
Registered: ‎05-30-2011
My Device: BlackBerry torch 9800
My Carrier: Airtel

for stoping orientation automatically change in BB 9500

hi all,

 

Is there a way of detecting when we rotate the device from "Landscape to Portrait" . i want to do like this if device is in portrait position then diferent screen will open and if we rotate it in landscape mode then diferent screen will be opened..  so is there any way to do that..

i also want to show my screen only in landscape mode ;  how this is possible.  i have no idea how to implement this; 

please give me suggestions?

 

thanx...

 

Developer
Posts: 16,750
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: for stoping orientation automatically change in BB 9500

you can control the screen orientation like this:
http://supportforums.blackberry.com/t5/Java-Development/Control-the-screen-orientation/ta-p/443050

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: for stoping orientation automatically change in BB 9500

If by your screen you mean one screen in particular and not the whole applicatin, then this might be useful:

http://supportforums.blackberry.com/t5/Java-Development/Choosing-Forcing-Screen-orientation/m-p/1308...

Highlighted
Trusted Contributor
Posts: 151
Registered: ‎06-17-2010
My Device: Curve 8900
My Carrier: Vodafone

Re: for stoping orientation automatically change in BB 9500

Hi rajani_dhawan,

 

I have also dothe same as you want to do for your application.

 

http://supportforums.blackberry.com/t5/Java-Development/Disable-screen-auto-rotation/m-p/1028509#M15...

 

at this link i have post a code to fix the orientation of screen.

Use this code in your main method to fix orientation and Enjoy Smiley Very Happy

 

----------------------------------------------------------------------------------------------------------------------------------------

Mark Post as Solved if you find the solution.

Don't say thanks, Press Like Button to thanks the user who Help you.