Skip to content Skip to sidebar Skip to footer

When Trying To Open A File With Intent Getting 'media Not Found' Error

I download a file and save it as a temporary file using File outputDir = context.getCacheDir(); File f = File.createTempFile(FILE_TYPE_PREFIX, '.' + extension,outputDir); f.exists

Solution 1:

getCacheDir() is part of internal storage for your app. Other apps do not have access to it. Use FileProvider to publish that content to other apps.


Post a Comment for "When Trying To Open A File With Intent Getting 'media Not Found' Error"