title: Android open camera from button
body: <p>I hope this isn't a duplicate question but I am making an app that I want a button to open the camera app (the default android camera separately). How do I got about doing that? I know there is a function:</p>
  
  <pre><code>intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE)
  </code></pre>
  
  <p>Do I need to use that? And how do I call the button from the xml file?</p>
  
  <p>Also do I need to worry about storing that picture or video or will the default camera app take care of that? </p>