I have an App where Users can download PDF's and Videos and store them locally, so that they dont need to download it later again. These PDF's and Videos only need to be accessable from within the App. What i mean by that is, that only the App can find those files but they can then be opened by third party apps (so that i dont need to implement pdf reader and video player specially for my app). I would call an intent to the third party app with the path to the file.
The User should be able to delete all these files from within the App Settings but also when the User uses the devices app settings to clear app cache.
So clearing the app cache in android device settings should also delete those downloaded PDF's and Videos.
Is there an ellegant way to do this?
Does it make sense to use a FileProvider
or does the FileProvider
does not get touched by the android device settings clear cache?