title: how to create phonegap brightness plugin for Android
body: <p>As I have found out there is no way to change the device brightness using Phonegap, so I have decided to create this plugin by my self. I am new to Phonegap and I do not know is it hard or not.
  I have red some examples on how to create plugins for Phonegap But there are some things I don't understand. 
  I have this code for changing the screen brightness and I want to create a method for Phonegap that calls it:</p>
  
  <pre><code>private void setBrightness(int brightness) {
      WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
      layoutParams.screenBrightness = brightness / 100.0f;
      getWindow().setAttributes(layoutParams);
  }
  </code></pre>
  
  <p>is it possible?
  Thanks</p>