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 6961477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:32:06+00:00 2026-05-27T15:32:06+00:00

Ok. trying to understand how Android handles downloaded images. So a few questions: 1)

  • 0

Ok. trying to understand how Android handles downloaded images. So a few questions:

1) Is it possible to download and save an image to the getCacheDir()?
2) Can this image be viewed from the cache directory?
3) If yes to 2), what is the action that will clear up the cache?
4) Must I download the image to somewhere before I can use the ACTION_VIEW intent to view the image?
5) If it is in the cache, how do I "save" it? Meaning put it in a more permanent directory and not the cache.

In summary, I’m trying to achieve user downloads an image from somwhere, sees it in the image viewer and chooses to save it or not.

Currently my understanding on this is I have to download and save it regardless before viewing it on an imageviewer with no choice to save it or not.

If I am wrong what is the approcah to achieve download, view, choose to save?

  • 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-27T15:32:07+00:00Added an answer on May 27, 2026 at 3:32 pm

    Ok, from your questions..

    1) Yes

    2) Yes (I think only for your application.. May be)

    3) You have to do it manually, using delete files form getCacheDir() or either by navigate
    to settings/Manage application clear cache data option..

    4) This never tried, but I think you have to do it, (Bco’z I think cacheDir is private for your application)

    5) Using File operation copy to another internal / external storage location…

    Note:

    getCacheDir ()
    

    Returns the absolute path to the application specific cache directory on the filesystem.

    These files will be ones that get deleted first when the device runs low on storage. There is no guarantee when these files will be deleted. Note: you should not rely on the system deleting these files for you; you should always have a reasonable maximum, such as 1 MB, for the amount of space you consume with cache files, and prune those files when exceeding that space.

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

Sidebar

Related Questions

Trying to understand PNG format. Consider this PNG Image: The Image is taken from
I'm trying to understand the documentation from Android for Sensor.TYPE_ACCELEROMETER: It gives this example:
Possible Duplicate: Understanding Android: Zygote and DalvikVM I am trying to understand how Android
I'm trying to understand how testing can be applied in android and have followed
I'm trying to understand how mono for android works and I'm not found this
I'm still new to programming/Java/Android so I'm trying to understand everything I do and
Trying to understand Ruby a bit better, I ran into this code surfing the
Trying to understand the math of this code snippet. A token is provided which
Im trying to understand how class generics work and this bit just doesnt make
I'm trying to understand the IntentService class so that I can build my own

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.