Saving cached files

In the event that you would rather not store data permanently, but instead cache data within storage, make use of cacheDir to open a file that represents a directory (within internal storage) where your application should save temporary cache files.

cacheDir returns a File. As such, you may make use of all methods put at your disposal by the File class, such as the outputStream(), which returns a FileOutputStream.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.18.101