I am using MediaElement to play mp3 files locally. But sometimes the files are not correctly downloaded (showing 0 bytes). When this is the case an exception occurs Java.Lang.RuntimeException: 'setDataSource failed: status = 0xFFFFFFEA'
, but the thing is when putting the line of code that causes this exception to occur inside a try catch nothing happens. It crashes with or without the try catch. So my question is how can I handle this issue? Thanks in advance.
try
{
// line that causes the exception
doaaME.Source = audioPath;
} catch(Exception e){}