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

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

how to off acceleration and set fix orientation through out the application ?

Hi Everybuddy,


I have making a project for Blackberry Torch. But i have Facing some problem regarding acceleration.


What i have to do? 



  • I want to set application orientation as ORIENTATION_LEFT_UP ..
  • after that i want to off the accelerator sensor off cause when user rotate the device then the application remains in the same orientation as ORIENTATION_LEFT_UP ..
and this two points remains Static throughout the application.
What is my problem?
  • this is the first application which i made for Blackberry torch. So that i can't know how to do the same.. 
  • Can any buddy Help me....
Thanks in advance...Smiley Sad