title: Can we use takePicture() in android without camera preview? I need to take a picture secretly for security purposes
body: <p>I tried few codes from here :</p>
  
  <p><a href="https://stackoverflow.com/questions/21752637/how-to-capture-an-image-in-background-without-using-the-camera-application">How to capture an image in background without using the camera application</a></p>
  
  <p>and this</p>
  
  <p><a href="http://www.vogella.com/tutorials/AndroidCamera/article.html" rel="nofollow">Android Camera API Tutorial</a>.</p>
  
  <p>This question may seem duplicated, but I really want to know that can this be done over API level 21?</p>
  
  <p>Thanks in advance.</p>