title: How to keep CPU from 'sleeping' when screen is turned off in Android?
body: <p>I have an application in which I am sending network data over WiFI.  Everything is fine until I turn the display off or the device goes to 'sleep'. I'm already locking the WiFi however, it <em>seems</em> to be the case that the CPU speed ramps down when in sleep which causes my streaming to not behave properly (i.e. packets don't flow as fast as I would like as they do when the device is not sleeping).</p>
  
  <p>I know that I possibly can/possibly should address this at the protocol level however, that <em>might possibly not</em> be possible as well...</p>
  
  <p>Is there <em>any way</em> to "prevent the CPU from going to 'sleep' when the screen is off"?  If so, how?  If not, any advice on how to keep the speed of my WiFi stream consistent whether the device is in sleep mode or not?</p>