title: Changing screen brightness on a HTC Sense device
body: <p>The old approach</p>
  
  <pre><code>  Window window = getWindow();
    LayoutParams layoutParams = window.getAttributes();
    layoutParams.screenBrightness = newFloatValue;
    window.setAttributes(layoutParams);
  </code></pre>
  
  <p>doesn't work on HTC Desire with <strong>Automatic brightness</strong> checked in <strong>Settings > Display > Brightness</strong>.<br>
  Is there a HTC-specific workaround for that?</p>