Hi Kai,
Screen Orientation API is supported on Crosswalk Android 4 beta and newer
version.
window.screen.lockOrientation("landscape") should work fine on Crosswalk Canary
build.
I just verified on Nexus 5 (Android 4.3) based on crosswalk-5.34.94.0 image.
https://download.01.org/crosswalk/releases/android-arm/canary/crosswalk-5.34.94.0-arm.zip.
Could you please clarify which device and the OS version are you using?
Thanks,
Li Yin
From: Crosswalk-help
[mailto:[email protected]] On Behalf Of
Kenneth Rohde Christiansen
Sent: Friday, February 28, 2014 8:26 PM
To: Kai Hartmann
Cc: [email protected]
Subject: Re: [Crosswalk-help] lock orientation
Does the method return true or false? It should work yet if the device supports
the locking.
Kenneth
On Fri, Feb 28, 2014 at 1:03 PM, Kai Hartmann
<[email protected]<mailto:[email protected]>> wrote:
Hi,
I try to lock the orientation on Android with the latest Canary build, with
'window.screen.lockOrientation("landscape")', but it does not seem to have any
effect.
Am I correct, that it should work with the latest version?
I do not use the XDK.
Kind regards,
Kai
_______________________________________________
Crosswalk-help mailing list
[email protected]<mailto:[email protected]>
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
--
Kenneth Rohde Christiansen
Web Platform Architect, Intel Corporation.
Phone +45 4294 9458 ﹆﹆﹆
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help