title: Getting the current screen brightness
body: <p>I want to get the real brightness value from the background. I have tried several ways:</p>
  <p>1.</p>
  <pre><code>    curBrightnessValue =android.provider.Settings.System.getInt(
                  getContext().getContentResolver(),
                  android.provider.Settings.System.SCREEN_BRIGHTNESS);
  </code></pre>
  <p>But if the screen brightness is on Auto mode the value remain constant.</p>
  <ol start="2">
  <li><p>Reading the <code>sys/class/backlight/brightness/</code></p>
  <p>This is a good way but I want a way without reading a file.</p>
  </li>
  </ol>