4 ms·
Honestly, media on Android is so bad it doesn't need any help crashing. I worked on a large production app that played sound files in the background when runnin
by lnanek2 13y ago
Honestly, media on Android is so bad it doesn't need any help crashing. I worked on a large production app that played sound files in the background when running and about once in a thousand the Android media calls to play the file would just permanently hang. The only way to reliably handle media on Android is to have a watchdog process that checks when your own is hung in the Android code and kills and restarts it from saved state files. This was a call to play just never returning, so there was no error to catch or anything that could be done.