title: How to Access Camera in Android 6.0 Marshmallow?
body: <p>I am to new to Android 6.0 Coding Please Provide a solutions For the Below Code:</p>
  
  <p>When i provide Run Time Permissions like <code>READ_EXTERNAL_STORAGE</code> and <code>WRITE_EXTERNAL_STORAGE</code> it shows an Exception like </p>
  
  <blockquote>
    <p><strong>java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.motorola.camera/.Camera clip={text/uri-list U:file:///storage/emulated/0/Pictures/MyAppNew%20File%20Upload/IMG_20160401_110234.jpg} (has extras) } from ProcessRecord{ed96564 26955:com.social.nocializer/u0a259} (pid=26955, uid=10259) with revoked permission android.permission.CAMERA</strong></p>
  </blockquote>
  
  <p>Either <code>MediaStore.ACTION_IMAGE_CAPTURE</code> and <code>MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE</code> Run Time Permissions are not working...</p>
  
  <p>Note: <code>READ_EXTERNAL_STORAGE</code> Works For When Opening Gallery</p>