I have open a new project -
Now what I would like to do is this - By pressing on the button I want an mp3 file being played - and also that each time the button is p
If you really have to invoke the click programmatically because the view has no own sound, i would solve it like that, its the simplest solution and a oneliner
view.playSoundEffect(SoundEffectConstants.CLICK);
very simple and works, if you want to make a layout play a sound you need to put
android:soundEffectsEnabled="true"
to the Layout