title: Why are getExternalStoragePublicDirectory and getExternalFilesDir are not supported on API level 4?
body: <p>I am trying to follow <a href="http://developer.android.com/training/basics/data-storage/files.html#WriteExternalStorage&quot;" rel="nofollow">Saving Files</a> reference. Why are <code>getExternalStoragePublicDirectory</code> and <code>getExternalFilesDir</code> <em>not</em> supported on API level 4?</p>
  
  <p>Right now i am using some of their example apps that supports API level 4
  i use the following code:</p>
  
  <pre><code>public File getAlbumStorageDir(String albumName) {
      // Get the directory for the user's public pictures directory. 
      File file = new File(Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_PICTURES), albumName);
      if (!file.mkdirs()) {
          //Log.e(LOG_TAG, "Directory not created");
          System.out.println("Directory not created"); 
      }
      return file;
  }
  </code></pre>
  
  <p>And i get the following error: <code>Call requires API level 8 (current min is 4): android.os.Environment#getExternalStoragePublicDirectory</code>.</p>
  
  <p>Is there anything else i could use for 4 ?</p>