Page 1 of 1

Audio save path

Posted: April 18th, 2023, 11:47 am
by Eohmer
Hello.

I wanted to know if I could change the save path for audio recordings. I wanted to save the audios in a specific folder, not the same in which the questionaire is in.

if possible, what do I need to do?

Thanks!

Re: Audio save path

Posted: April 18th, 2023, 8:47 pm
by khurshid.arshad
Suppose your application is stored in the directory "file explorer\Android\data\gov.census.cspro.csentry\files\csentry\applicationname\". If you intend to save audio in a different folder named "file explorer\Android\data\newfolderaudio\", you can implement the following logic. I hope this solution works for you.
            if direxist("..\..\..\..\..\data\newfolderaudio\")then

            else

                dircreate
("..\..\..\..\..\data\newfolderaudio\");

           
endif;
                Recording.save("..\..\..\..\..\data\newfolderaudio\"+ audioFilename);
a.

Re: Audio save path

Posted: April 19th, 2023, 12:46 pm
by Eohmer
I'll give it a try.

Thanks!