I am trying to work with android Equalizer It works if my app has been started , but fails when another app uses equalizer
the app would crash whenever my app tries to access the equalizer library
Is there a way to know if equalizer is available other wise not to start the activity
here is the code I am trying
Equalizer eq = null;
if (eq != null) {
eq.release();
}
try {
eq = new Equalizer(0, 0);
}
catch (IllegalStateException e) {
fail("Equalizer not initialized");
}
catch (IllegalArgumentException e) {
}
catch (UnsupportedOperationException e) {
}
but I still keep getting the error
java.lang.RuntimeException: java.lang.UnsupportedOperationException: Effect library not loaded