How to include optionally downloadable audio files in my android app? -


i developing android app has audio files(.mp3). have placed these files in res/raw folder. want make these files downloaded if user wishes download later on. not want these shipped along apk file. please suggest.

you can put files on web server , give option user if he/she wants download files, user can download webserver. shipping files apk result in increased size of apk well. example there can list view of sound files in app, each linked download url. on user request, if agrees download, can initiate asynctask in onclick , play file in onpostexecute after files has been downloaded.

a simple check can placed check if file has been downloaded or not , initiate asynctaskbased on boolean returned check. hope helps.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -