Hi Krish,
Both
screen.lockOrientation("landscape");
screen.lockOrientation("landscape-primary");
works with 4.32.76.6 on test device Nexus 5 today.
I guess you typed something wrong with the closed </script> tag?
<script>
window.screen.lockOrientation(“landscape”);
</scrip>
</script>
Relevant issue tracked in
XWALK-162<https://crosswalk-project.org/jira/browse/XWALK-162> .[Android]
screen.orientation should be supported on Android (Fixed in 4.32.76.0)
XWALK-1008<https://crosswalk-project.org/jira/browse/XWALK-1008> Support for
"default orientation" in manifest (Proposed)
BR
Belem
From: Crosswalk-help
[mailto:[email protected]] On Behalf Of
Antonio Aloisio
Sent: Tuesday, April 15, 2014 5:23 AM
To: krish
Cc: [email protected]
Subject: Re: [Crosswalk-help] What is the right way to lock screen orientation?
Hi,
I'm using ./make_apk.py --manifest=/path/to/your/manifest.json
--orientation=landscape and it works like a charm!
No idea if there are other ways to set it in non-java code.
Cheers,
Antonio
On Mon, Apr 14, 2014 at 11:14 PM, krish
<[email protected]<mailto:[email protected]>> wrote:
Hey guys,
I'm using 4.32.76.6 stable and unable to lock screen orientation.
I used
<script>
window.screen.lockOrientation(“landscape”);
</scrip>
in the body of my html
Is that the right way?
Deploy/test device used was Nexus 7 (android 4.4)
Any right pointers would be great! Thanks you.
--
Krish
_______________________________________________
Crosswalk-help mailing list
[email protected]<mailto:[email protected]>
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help