I found a workaround to pack the sound file into the .apk, which installs it in a folder on the SD card. For this example, refer to the app as “app.apk”, and the sound file as “sound.wav”.
1. Assign an icon to a Task; but instead of an icon, select sound.wav. It will be packed into the .apk when exported as App, but as a custom .png file in the res/drawable/ folder. In my case it was “cust_animal_bear.png”. You can identify it by file size, as it will be the exact size of the original sound.wav.
2. Create tasks to do the following, the first time the app runs:
a. Create a Temporary folder on the SD Card
b. Copy
app.apk from the data/app directory into the Temporary folder, and change the
extension to .zip (i.e., app.zip). You cannot browse to the file in the "Copy File" Action, so
locate it with a File Browser, then manually enter the file location.
E.g. "/data/app/org.domain.appname-1.apk"
c. Extract app.zip in the Temporary folder
d. Create a Permanent folder on the SD Card
e. Copy the file from the Temporary folder to the Permanent folder, renaming it to sound.wav (in my case, the file on my SD Card was “Temporary/res/drawable/cust_animal_bear.png”)
f. Delete the Temporary folder
I found this method doesn't transfer variable values over when generating apps. Is there a possible way to transfer variables over using the action Read Binary?