Page 1 of 1

Test Run

Posted: July 16th, 2026, 1:51 am
by VirtuesArios
Is there a way we could run a program using an Android if the program is running and data sync in the DropBox is all good, then we want a clean (Database/CSDB) before the survey start.

Re: Test Run

Posted: July 16th, 2026, 10:51 am
by Gregory Martin
The easiest way to do this, as long as you don't mind the training data staying on the tablet (but inaccessible), is to use different data files for the training data and the main survey data. For example, collect data to Training-Data.csdb, and then when testing is done:

1) Modify your PFF, changing the filename to Data.csdb.
3) Update your applications so that they have this new PFF, either manually or via CSDeploy.
3) Delete the directory on Dropbox containing the synced training data.

Re: Test Run

Posted: July 18th, 2026, 8:32 am
by VirtuesArios
Gregory Martin wrote: July 16th, 2026, 10:51 am The easiest way to do this, as long as you don't mind the training data staying on the tablet (but inaccessible), is to use different data files for the training data and the main survey data. For example, collect data to Training-Data.csdb, and then when testing is done:

1) Modify your PFF, changing the filename to Data.csdb.
3) Update your applications so that they have this new PFF, either manually or via CSDeploy.
3) Delete the directory on Dropbox containing the synced training data.
If there is only, is it possible to erase also the data on the tablet? Thank for the reply Gregory Martin much appreciate it.

Re: Test Run

Posted: July 20th, 2026, 7:32 am
by Gregory Martin
One option is to simply add logic in the preproc of your application that deletes the old data file. Something like this:
filedelete("Training-Data.csdb");
The function will return 0 is the file doesn't exist, but it won't display an error message to the user, so you can run this code repeatedly without an issue.

As the deleted file cannot be recovered, be careful if you use this code!