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

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

 

Please use plain text.
Developer
simon_hain
Posts: 16,190
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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
Please use plain text.
Developer
peter_strange
Posts: 19,607
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...

Please use plain text.
Trusted Contributor
Albert_Anks
Posts: 151
Registered: ‎06-17-2010
My Device: Curve 8900

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 :smileyvery-happy:

 

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

Mark Post as Solved if you find the solution.

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

 

 

Please use plain text.