Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8373467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:40:58+00:00 2026-06-09T14:40:58+00:00

The example in the Javadoc for Environment.getExternalStoragePublicDirectory() mentions Context.getExternalMediaDir() but this method isn’t available

  • 0

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);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:40:59+00:00Added an answer on June 9, 2026 at 2:40 pm

    I believe it is just incorrectly named; I think they meant to say “Context.getExternalFilesDir()“. This may have been a typo, or the method may have been renamed later on.

    Based on the explanation in the comments (“pictures and other media owned by the application“), it closely matches that of getExternalFilesDir(String type), which is “where the application can place persistent files it owns“. Note that you can pass null to getExternalFilesDir, which returns the root directory, or specified to return a type of folder you’re looking for.

    I will say, I am speculating somewhat here. However, this seems to be the most likely explanation for this seemingly nonexistent method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Documentation for Android SDK, API 8, the javadoc for class android.test.InstrumentationTestRunner mentions command-line
This FileInputStream.available() javadoc says: Returns an estimate of the number of remaining bytes that
I know how to generate simple javadoc for a method, but I thought it
I'm building the example shown in this tutorial: http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/ And I'm get some errors
Please refer to this API. The link is: http://download.carrot2.org/stable/javadoc/org/carrot2/text/preprocessing/pipeline/CompletePreprocessingPipeline.html Class CompletePreprocessingPipeline Field Summary DocumentAssigner
my JavaDoc doesn't work when I have a code example with an annotation. Any
is there a good example of a source file containing Javadoc ? I can
Example: print max(chain_length(i) for i in xrange(1,10001)) This returns the maximum/biggest chain_length (an arbitrary
My goal is to understand every single bit of the following example: http://code.google.com/p/google-api-java-client/wiki/AndroidAccountManager I
I cannot find any example of maven pom where the javadoc plugin is used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.