How to add sound to a button in android studio | Android studio tutorial
Hi guys, in this android development tutorial I explain how you can add sound effects to a button or view that you want a user to click on. I used MediaPlayer class to play the sound that I have already prepared. I only demonstrate on a Button you use any view in android to call OnClickListener and then call start() to play the sound file in raw folder.
If you find this useful please like this video and don’t forget to subscribe.
Thank you for watching.
Follow me on facebook https://www.facebook.com/Techno-Coding-488399231922328/
#addSoundToButton #OnClickListener #androiddevelopment #android #tutorials
Views :23529
android studio