Changing screen brightness efficiently
<p>I need to change the screen brightness programmatically. I read multiple solutions like this <a href="http://stackoverflow.com/questions/5032588/cant-apply-system-screen-brightness-programmatically-in-android">Can&#39;t apply system screen brightness programmatically in Android</a>. </p>

<p>My problem is that those solutions implies changing the activity to be effective (having something like a dummy activity finishing immediately) and I would like to avoid the overhead of an activity switch.</p>

<p>Is there any other solution... maybe using native code so that the screen brightness will change immediately ?</p>
