Page 1 of 1

Problem with the function compress on android

Posted: June 6th, 2018, 10:29 am
by thierryt
Hi all,
i am happy to see that there is a new function (compress) to Zip files in Cspro 7.1.1. i used it on windows devices and it is functionning very well, but when i generate the .pen file and execute on android device, it just create the file .zip but the content is empty.
Please is there a solution to fix it on android devices ?

Re: Problem with the function compress on android

Posted: June 6th, 2018, 11:09 am
by josh
Compress works fine on Android in our tests. I would double check the paths of the files you are giving as input. Very often when moving from Windows to Android the paths are not correct.

Re: Problem with the function compress on android

Posted: June 6th, 2018, 11:57 am
by thierryt
Hi Josh,
i wrote this :
compress("../BACKUP/donnees.zip","../DATA/*.dat*");
on windows it is ok, but not on android, is there a mistake ?
(The folder DATA contents the data, and i want to make a copy of theses data to another folder named BACKUP and compress that copy).

Re: Problem with the function compress on android

Posted: June 6th, 2018, 2:00 pm
by josh
That should work assuming all those directories exist on Android. If your application is int he directory /mnt/scdcard/csentry/myapp on Android then it is going to look in the directories /mnt/scdcard/csentry/BACKUP and /mnt/scdcard/csentry/DATA.