Normally I use the try-catch
to detect if the process of launching an Intent has been successful or not.
For example to open the equalizer panel of the system configuration, there are models that have it and others the manufacturer has removed it
Intent i = new Intent(AudioEffect.ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL);
try {
startActivity(i);
} catch (ActivityNotFoundException ex) {
ex.printStackTrace();
}
With Try-Catch
I detect it but I wonder if there is a previous way to know if it is available?
Or the most optimal way, do not spend so many resources ...