Do music files on / sdcard in apk?

I have an application that has been exported to apk. I saved several .wavmusic files to /sdcard/audiowhich are absolutely necessary for the application. My question is this:

  • How to export wav files and make sure they are present on apk? When I export the project, apk size is approximately 23KB. It seems that I should have had the wav files somewhere in another, in a different directory. I added the files to / sdcard / audio using the mkdir + push commands in adb.
+3
source share
2 answers

These file types must be in /res/raw. Files in the SD card will not be placed in apk.

+4
source

, .wav : , virutal apk. , , (, wav) .. .

, . ( eclipse: , , src, res etc dir) apk. .

, @macarse : /res/raw

+1

Source: https://habr.com/ru/post/1786131/


All Articles