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

  • Home
  • SEARCH
  • 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 3443442
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:47:30+00:00 2026-05-18T08:47:30+00:00

After downloading images it saves them to this location String extStorageDirectory; protected void onCreate(Bundle

  • 0

After downloading images it saves them to this location

 String extStorageDirectory;
protected void onCreate(Bundle icicle) {
extStorageDirectory = Environment.getExternalStorageDirectory().toString(); //set it to the SD card directory
}

 public void savetoSD(Integer Index) //Index is what pic number it is 1 through 9
    {
        OutputStream outStream = null;
        String filename = "Hentai" + System.currentTimeMillis() + ".JPEG";
        String filepath = extStorageDirectory + "/media/pictures/MyAppsDownloadFolder/" + filename;
        File file = new File(filepath);
           try {
            outStream = new FileOutputStream(file);
            //get a download here for the real bitmap
            DownloadFromUrl(myMainPicURL[Index],filename);
            Bitmap saveME = null;
                    saveME = BitmapFactory.decodeFile(PATH+filename);
                    saveME.compress(Bitmap.CompressFormat.JPEG, 100, outStream);
                outStream.flush();
                outStream.close();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            //need to refresh the damned MediaScanner
            try {
                MediaStore.Images.Media.insertImage(getContentResolver(), filepath, filename, "myDownloadedPics");
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            message_user("Saved as " + filepath);
    }

I believe the mediastore doesnt work or i dont know how to use it please help

I want the downloaded images to appear in the gallery or atleast have the folder MyAppsDownloadFolder to show in the gallery which it doesnt!

  • 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-05-18T08:47:30+00:00Added an answer on May 18, 2026 at 8:47 am

    The media scanner does not automatically scan the SD card, except when the device is turned on or the SD card is unmounted from the host PC.

    If you want the media scanner to specifically do a scan on demand, use MediaScannerConnection.

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

Sidebar

Related Questions

I'm having a problem with cURL. I am downloading images and saving them to
After downloading all .NET framework symbols and sources using NetMassDownloader , is it possible
After downloading files from a remote UNIX FTP server, you want to verify that
After reading this question , I was reminded of when I was taught Java
i want to display a image after downloading that image from a web-server i
I'm curious why I'm having trouble with this function. I'm downloading a PNG file
Below is the code to write to a file after downloading an image from
After downloading IE9, I found that running any Silverlight page breaks (only in IE9).
hi im doing an openGL project but after downloading and installing the glut library
After reading the Head First Design Patterns book and using a number of other

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.