title: Open Specific Folder in Android with Click
body: <p>I'm using the code below to open a folder created by my application but it's not working, though I got it from <a href="https://stackoverflow.com/questions/21544331/trying-open-a-specific-folder-in-android-using-intent">Trying open a specific folder in android using intent</a>.</p>
  
  <pre><code>public void openFolder() {
      SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
      String pa = sharedPreferences.getString("path", "");
      Intent intent = new Intent(Intent.ACTION_VIEW);
      Uri uri = Uri.parse(pa);
      intent.setDataAndType(uri, "*/*");
      startActivity(Intent.createChooser(intent, "Open folder"));
  }
  </code></pre>
  
  <p>When I am sing Action_View, it shows all possible means except <code>FileManager</code> and in <code>ACTION_GET_CONTENT</code> it took me to SAF mode like to choose storage and then specific folders. </p>
  
  <p>How will it open my defined URI folder directly? Is there any other way?</p>