title: recording video from a service with Camera2 API
body: <p>I have issues on some phones that I can't test on (that's the first problem)
  I'm trying to build a service that can record from camera2 API. But when I send the app to the background, on some phone it appears to have issues that I am failing to solve at the moment. I only have logs and cannot figure out the main reason for the app not working.</p>
  <p>Thank you for helping</p>
  <h1>Edit:</h1>
  <p>You'll find the actual source code that solved my problem here: <a href="https://bitbucket.org/dreamappsfr/kinghul" rel="noreferrer">https://bitbucket.org/dreamappsfr/kinghul</a></p>
  <p>This was a POC that has been stopped. I honestly don't remember how I overcome this specifical issue at that time.</p>