Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to store large number of Audio Files in Android?

Tags:

android

audio

I am working on an application which requires me to play large number of audio files. Each file would be of size 100KB approximately. Currently i have 220 files which can go up in future. If I put these files in res/raw folder then i would end up having a very large size of APK file.

What are the best methods to store audio files in android? What type of audio file would be best to store in the apk? Or Please suggest me some other approach to deal with such a large number of audio files.

like image 331
Udit Shah Avatar asked Oct 22 '22 01:10

Udit Shah


1 Answers

There is 50MB limit on main APK.

If I were you I would include only "required" files and then use Android Expansion files: http://developer.android.com/google/play/expansion-files.html to download additional ones.

like image 161
Arkadiusz 'flies' Rzadkowolski Avatar answered Oct 29 '22 05:10

Arkadiusz 'flies' Rzadkowolski