What is Context.getExternalMediaDir()?

Viewed 7322

The example in the Javadoc for Environment.getExternalStoragePublicDirectory() mentions Context.getExternalMediaDir() but this method isn't available in my Android API version and I can't find it documented anywhere in any version. Is this a typo or something that never made it to release?

void createExternalStoragePublicPicture() {
    // Create a path where we will place our picture in the user's
    // public pictures directory.  Note that you should be careful about
    // what you place here, since the user often manages these files.  For
    // pictures and other media owned by the application, consider
    // Context.getExternalMediaDir().
    File path = Environment.getExternalStoragePublicDirectory(
            Environment.DIRECTORY_PICTURES);
2 Answers
Related