Hi,

By using the manifest.json below w/I or w/o "display":"fullscreen", the Lock 
and Unlock work well for all the values like "portrait", "landscape", 
"landscape-secondary" with Stable build 14.43.343.17 on Android 4.4.2 device 
ASUS Memo Pad 8.

{
  "name": "orientation api test",
  "xwalk_version": "1.00",
  "start_url": "http://aurelio.audero.it/demo/screen-orientation-api-demo.html";,
  "icons": [
    {
      "src": "crosswalk.gif",
      "sizes": "128x128"
    }
  ]
}

What's the SDK version of your Android device?

Relevant issues:
https://crosswalk-project.org/jira/browse/XWALK-3300 
https://crosswalk-project.org/jira/browse/XWALK-2511 

1. Use the Fullscreen API to make the application fullscreen at first
2. screen.orientation.lock()

BR
Belem

-----Original Message-----
From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Brezzy 
Cloud
Sent: Thursday, July 30, 2015 5:49 AM
To: [email protected]
Subject: [Crosswalk-help] help with sceen orientation api

firstly I try to use screen.lockOrientation(orientation) function in my 
project, but it dont work, after that I build app use this html:
http://aurelio.audero.it/demo/screen-orientation-api-demo.html
and manifest.json:
{
  "name": "orientation api test",
  
  "xwalk_version": "1.00",
  "start_url": "index.html",
  "icons": [
    {
      "src": "icon/icon192.png",
      "sizes": "192x192",
      "type": "image/png",
      "density": "4.0"
    }
           ]
}
build it use crosswalk 14.43.343.17, but orientation to not want to change too. 
Any idea?
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to