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
problems with detecting files from the download with dirlist folder on android 14
-
- Posts: 2
- Joined: May 27th, 2024, 9:04 am
-
- Posts: 1882
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: problems with detecting files from the download with dirlist folder on android 14
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.
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.
-
- Posts: 2
- Joined: May 27th, 2024, 9:04 am
Re: problems with detecting files from the download with dirlist folder on android 14
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
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