How to open the built-in equalizer programmatically in Android?

I saw a lot of application opening systems in the built-in equalizer (music for Google play, Spotify, Samsung music player). Directly, without having to write your own from scratch. How do these applications do it? I could not find a solution.

} else if (id == R.id.action_fx) { Intent intent = new Intent(); intent.setAction("android.media.action.DISPLAY_AUDIO_EFFECT_CONTROL_PANEL"); if ((intent.resolveActivity(getPackageManager()) != null)) { startActivity(intent); } else { Intent intent11 = new Intent(MainActivity.this, Help.class); intent11.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); startActivity(intent11); // No equalizer found :( } return true; 
+7
android
source share
1 answer

The following should work to start the default equalizer of Activity :

 Intent intent = new Intent(AudioEffect .ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL); if ((intent.resolveActivity(getPackageManager()) != null)) { startActivityForResult(intent, REQUEST_EQ); } else { // No equalizer found :( } 

Spotify does the same, has not tested others.

+8
source share

All Articles