title: Change the System Brightness Programmatically
body: <p>I want to change the system brightness programmatically. For that purpose I am using this code:</p>
  
  <pre><code>WindowManager.LayoutParams lp = window.getAttributes();
  lp.screenBrightness = (255);
  window.setAttributes(lp);
  </code></pre>
  
  <p>because I heard that max value is 255.</p>
  
  <p>but it does nothing. Please suggest any thing that can change the brightness.
  Thanks</p>