title: Open default camera in android?
body: <p>I have searched a lot but i did not get any solution. I want to open default camera of my android device so that i can capture image as well as video. I have tired it using: </p>
  
  <pre><code>Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  startActivityForResult(intent, ACTION_IMAGE_CAPTURE);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
  startActivityForResult(intent, ACTION_VIDEO_CAPTURE);
  </code></pre>
  
  <p>But using this camera open only in one mode either in Image or in Video capture mode. I want to open default camera. <strong>Please don't suggest using Surface View holder.</strong></p>
  
  <p>Thanks a lot in Advacnce</p>