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!
Audio save path
-
- Posts: 606
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Audio save path
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;
else
dircreate("..\..\..\..\..\data\newfolderaudio\");
endif;
Recording.save("..\..\..\..\..\data\newfolderaudio\"+ audioFilename);
a.Re: Audio save path
I'll give it a try.
Thanks!
Thanks!