title: How to get SD_Card path in android6.0 programmatically
body: <p>I am trying to check whether device having external storage or not by using external storage path like this given below</p>
  
  <pre><code> if (new File("/ext_card/").exists()) {
          specialPath = "/ext_card/";
      } else if (new File("/mnt/sdcard/external_sd/").exists()) {
          specialPath = "/mnt/sdcard/external_sd/";
      } else if (new File("/storage/extSdCard/").exists()) {
          specialPath = "/storage/extSdCard/";
      } else if (new File("/mnt/extSdCard/").exists()) {
          specialPath = "/mnt/extSdCard/";
      } else if (new File("/mnt/sdcard/external_sd/").exists()) {
          specialPath = "/mnt/sdcard/external_sd/";
      } else if (new File("storage/sdcard1/").exists()) {
          specialPath = "storage/sdcard1/";
      }
  </code></pre>
  
  <p>But in marshmallow I con't find this path and while checking using ES FILEMANAGER, they give like storage/3263-3131 in Moto G 3rd generation. While check in other marshmallow devices that numbers getting differ. Please help me to check that marshmallow device have external storage or not? and if storage found means how to get the path of that external storage? </p>
  
  <p>Note:- I gave permission for storage in my application and also enabled storage permission in settings for my app.</p>
  
  <p>Thanks in advance and did you find any mistake in my question please crt it. thank you again.</p>