Page 1 of 1

problems with detecting files from the download with dirlist folder on android 14

Posted: May 27th, 2024, 9:08 am
by aldo.aliende
Morning! dirlist only detects the folders inside download but not the files, what could be the problem?
on android 13 it works fine! I use cspro 7.7.3

Re: problems with detecting files from the download with dirlist folder on android 14

Posted: June 4th, 2024, 6:37 pm
by Gregory Martin
Google is continually locking down access to shared files on Android for security reasons. The motivation is that an application shouldn't be able to see all the files that you downloaded because some of them may be sensitive.

In CSPro 8.0, we added a way to copy files from the Downloads folder to the csentry folder. See here:

https://www.csprousers.org/help/CSPro/a ... tions.html
https://www.csprousers.org/help/CSPro/C ... ument.html

This is the functionality that you can use to gain access to a file in the Downloads folder, but you'll have to upgrade to 8.0.

Re: problems with detecting files from the download with dirlist folder on android 14

Posted: July 31st, 2024, 1:13 pm
by aldo.aliende
I solved my problem with this code and cspro 8.0.1

CS.File.copy(source := "file-in-application-directory.jpg",
destination := Path.concat(Downloads, "file-in-downloads-directory.jpg"));


thank you so much!
now my problemas its my cs shifter! i can change 7.7.3 to 8.0.1