Code example for Equalizer

Methods: setBandLevel

0
                        equalizer.setBandLevel(band, level);
                    } 
                    updateLevelText(levelTextView, level);
                } 
 
                @Override 
                public void onStartTrackingTouch(SeekBar seekBar) {
                } 
 
                @Override 
                public void onStopTrackingTouch(SeekBar seekBar) {
                } 
            }); 
            layout.addView(bandBar);
        } 
    } 
 
    private void updateLevelText(TextView levelTextView, short level) {
        levelTextView.setText((level > 0 ? "+" : "") + level / 100 + " dB");
    }