My code for download files and save them in the internal storage is:
val downloadManager = context!!.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager
val request = DownloadManager.Request(uri)
request.setTitle(filename)
request.setDestinationInExternalPublicDir(FOLDER_NAME, File.separator + filename)
...
It works fine and files are saved in the correct folder, but I would like to add my app's icon to that folder like Whatsapp or Snapchat do:
Does anyone know how to do it? Maybe adding anything to .setDestinationInExternalPublicDir() ?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)