title: Android app video recording when screen off
body: <p>What I am trying to do is that make an app that can record video or audio while the screen is off. Either we start recording and then switch off the screen or the recorder should trigger with a voice or any other external command. In either case the app should keep on recording.</p>
  
  <p>Please provide code of you can.</p>