I am creating an application in which I have to record the voice and save it and later play the same. I want to save the recorded audio in the raw folder of the application. How should I give the the directory path of raw folder to save my Audio file.
Share
Sorry you can’t.
Because of
Android .apk file is read-only, you can’t write any file in package hierarchy (like res, raw, asset).Better to store it in application’s package (internal storage) or External Storage.
Update:
This will create a file in application’s internal storage.