Keep app running when the screen is blank and locked
<p>I want my app to keep running when the screen is blank and locked.</p>

<p>This is an instrumentation app that runs when the phone is in the pocket, so we can blank the screen to save power.</p>

<p>Currently:</p>

<p>If the phone locks automatically the screen goes blank and the app terminates. When the phone is unlocked the app needs to be re-started.</p>

<p>If the phone is manually locked (with a tap on the power button) the screen goes blank, the app stays running, but the data to voice output stops "working". When the phone is unlocked the app is still running and the data to voice starts "working" again.</p>

<p>I don't think WakeLock will do that for me. It's a function that's more like a sticky bit, as in load and don't terminate unless there is a specif command to terminate.</p>

<p>Any pointers to what I should be doing would be appreciated - thanks - Rob</p>
