F
F
foonfyrick2021-02-23 09:32:27
Android
foonfyrick, 2021-02-23 09:32:27

How to download file in application.externalCacheDir?.absolutePath?

When downloading, I want to specify the destination of the application.externalCacheDir?.absolutePath file,

that is, the path should be:
/storage/emulated/0/Android/data/com.example.AppName/cache/filename.png

but if I write setDestinationInExternalFilesDir (this,"cache","filename.png")
then my path is created like this:
/storage/emulated/0/Android/data/com.example.AppName/files/cache/filename.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question