how can I make listener for multiple buttons in Android with for loop? Like in java :

```
private class Akcija implements ActionListener {
    public void actionPerformed(ActionEvent e){

        for(int r=0;r<brDugm;r++){
            if (e.getSource() == b[r]) {
                .... 
            }
        }
}

```