title: Set screen autorotation system setting from code
body: <p>I'm trying to figure out how to modify this setting programmatically. Could someone indicate an API or suggest something?</p>
  
  <p>The images illustrate where this option is in Android:</p>
  
  <p><img src="https://i.stack.imgur.com/g6P63.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/AH6ls.png" alt="enter image description here"></p>