How to Play a Sound File Using the MediaPlayer Class - Android Studio Tutorial
In this video we will take a look at a simple MediaPlayer example. We will play a local sound file from our raw folder and we will be able to pause, resume and stop the music. When we stop our MediaPlayer, we will immediately release it to free up system resources.
Check out the SoundPool video:
Source code:
____________________
⌨️ Watch me code LIVE on Twitch:
📺 Watch all my previous Twitch streams:
⭐ Get my MVVM Caching Course now:
📱 Check out my apps:
❗ Subscribe to the channel:
💲 Earn money by becoming an affiliate for my courses:
h
5 views
134
39
1 day ago 00:09:55 2
Girls Try On Stylish Tights | 2025 Collection Showcase
1 day ago 00:02:13 0
Baseball 9 Hack/MOD APK iOS & Android - How to Get Baseball 9 Free Gems and Coins