Android stay app active
<p>I would like to stay my android application active when it working, and I am using FLAG_KEEP_SCREEN_ON flag for this purpose, but I don't want always keep screen on, because it's not economic for battery. I want to use a standard behavior - when user touch screen - he's lighting up, and after some time of inactive turn off. How can I do this?</p>
