title: start camera for both take picture OR record video
body: <p>I googled for 2 weeks to find what I want. However, I am not able to find answer to my question and I have no idea how it could be done by Google Photos developers. The screenshots below are from Google Photos app. </p>
  
  <p>When I click <code>Take a photo</code>, it starts(or <em>opens</em>) the camera and allows to take pictures <strong>OR</strong> record videos. I can also start camera to take picture and record video <em>in different intents</em> using following codes:</p>
  
  <pre><code>startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), ACTION_TAKE_PICTURE_RESULT_CODE);
  startActivityForResult(new Intent(MediaStore.ACTION_VIDEO_CAPTURE), ACTION_TAKE_VIDEO_RESULT_CODE);
  </code></pre>
  
  <p>Those lines works without any bug/problem. But my question is, how to start camera to take pictures <em>OR</em> record videos? </p>
  
  <p>I hope my problem(question) is clear. </p>
  
  <p><a href="https://i.stack.imgur.com/vBnaq.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vBnaq.jpg" alt="first"></a>
  <a href="https://i.stack.imgur.com/ZvXzi.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ZvXzi.jpg" alt="second"></a></p>