Screen flashing programmatically
<p>I want a screen flashing feature i.e blinking in my project. I followed this question link in stackoverflow <a href="http://stackoverflow.com/questions/1791340/adding-screen-brightness-controls-to-android-application">Adding screen brightness controls to android application</a></p>

<p>I applied the code given by fiXedd there. It works i mean when a state is true i am flashing and code is working but then say state is false(i.e i want to stop flashing and restore old brightness) then my whole screen goes black. Then i have to press back to exit app.</p>

<p>What is the better way to do screen flashing and then later based on condition to stop it ?
Thanks.</p>
