title: Android how to check whether the camera was used to take photo or video
body: <p>I am using the following code to start device camera with both image and video mode swapping.So once i take a photo or video i am returned no value to identify whether the user took a photo or video. </p>
  
  <pre><code>Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA);
  startActivityForResult(intent, 0);
  </code></pre>
  
  <p>Please help me with this</p>