Take a look here for information on how to tell the window manager to keep the device's screen turned on and bright for a particular Activity. Also, there is a code example here which might be helpful.
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
ScroogeXHTML 8.0 - RTF to HTML5 and XHTML converter