title: How to list files in an android directory?
body: <p>Here's my code so far:</p>
  
  <pre><code>String path = Environment.getExternalStorageDirectory().toString()+"/Pictures";
  
          AssetManager mgr = getAssets();
  
          try {
  
              String list[] = mgr.list(path);
              Log.e("FILES", String.valueOf(list.length));
  
              if (list != null)
                  for (int i=0; i&lt;list.length; ++i)
                      {
                          Log.e("FILE:", path +"/"+ list[i]);
                      }
  
          } catch (IOException e) {
              Log.v("List error:", "can't list" + path);
          }
  </code></pre>
  
  <p>Yet while I do have files in that dir, it returns me list.length = 0... any ideas?</p>