rhomobile screen orientation

I have fixed the orientation for my app vertically,but to use the device scanner I want it to be horizontally,so is there any way to do that,as the scanner doesnt work well when in vertical mode.I need to fix this asap.

Thanks,

Divyansh

Sushil Gusain
Hi Divyansh,try this

Hi Divyansh,

try this JavaScript code according to your requirement

screenOrientation.autoRotate = '0';   \\Disabled for 0 and Enabled for 1

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Divyansh Madan
does this work for non

does this work for non motorola device too because I think its for et1?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
It will only work for

It will only work for Motorola Devices, you can not programmatically disable auto rotation on Non Moto devices through the framework, there is however a setting in rhoconfig.txt which acts over the whole app.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Sushil Gusain
Hi Divyash,It will work only

Hi Divyash,

It will work only for Motorola devices, not for non-motorola devices.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments