title: Finding SD-Card Path in Android 4.4 Kitkat
body: <p>In one of my application i'm accessing some files in the sd card. I'm using the below function to determine the mounted sd-card path.</p>
  
  <pre><code>File file = new File("/system/etc/vold.fstab");
      FileReader fr = null;
      BufferedReader br = null;
      String path = "";
  
      try {
          fr = new FileReader(file);
      } catch (FileNotFoundException e) {
          e.printStackTrace();
      } 
  
      try {
          if (fr != null) {
              br = new BufferedReader(fr);
              String s = br.readLine();
              while (s != null) {
                  if (s.startsWith("dev_mount")) {
                      String[] tokens = s.split("\\s");
  
                      path = tokens[2]; //mount_point
                  }
                  s = br.readLine();
              }
          }            
      } catch (IOException e) {
          e.printStackTrace();
      } finally {
          try {
              if (fr != null) {
                  fr.close();
              }            
              if (br != null) {
                  br.close();
              }
          } catch (IOException e) {
              e.printStackTrace();
          }
      }
  
      return path;
  </code></pre>
  
  <p>This works for all the devices prior to Kitkat. But in Kitkat version i'm getting <strong>FileNotFoundException</strong> on line 1,</p>
  
  <pre><code>File file = new File("/system/etc/vold.fstab");
  </code></pre>
  
  <p>I found so many articles about updated sd card permission in Android kitkat version.But still a bit confused about that... 
  Please can anyone help me to sort it out??? Thanks in advance...</p>