title: Take a picture with camera and get bitmap
body: <p>I am working on an app for android that uses the front facing camera to simulate a mirror for the user. I need the app to take a picture every 5 seconds as a bitmap(automatically and without user interaction), which I then combine with another bitmap later on.</p>
  
  <p>The difficult part for me: How to take a picture and get it as a bitmap?</p>
  
  <p>I tried several solutions, but none have worked yet.</p>
  
  <p>The other question that this is marked as a duplicate for is for doing this manually and not automatically.</p>