title: How to put camera sensor inside my Activity?
body: <p>There is an application made by another developer and I need to continue it. It has an <code>activity</code> with a button that calls the default camera app as an <code>intent</code> with <code>startActivityForResult</code>. It works ok when they take only one picture per app session. But now the client wants to be able to take various photos from different position of the place and then upload them all to the web server. So I need another way to do that, faster than opening the camera app for every picture.</p>
  
  <p>For this I wish to load the camera directly in my activity, place a 'shoot' button, a label with the number of pictures taken, an imageView with the last image saved, and a button to finish. As an example I show you this printed screen from Internet.</p>
  
  <p>The idea is to save a picture on every button click, and save the file names in an array.</p>
  
  <p>How can I use the camera this way and control it with a custom button?</p>
  
  <p><img src="https://i.stack.imgur.com/FdcLa.jpg" alt="enter image description here"></p>