Tutorial How To Play Sound from PC in Android Studio
Easy tutorial how to play your sound from pc, offline, in Android Studio, using MediaPlayer.
Create new project with Application name: Play sound; Minimum SDK: API 21 – Android 5 (Lollipop).
In app->res->layout-> create New Directory: rawand copy-paste a sound from your computer, with name: sound.mp3.
In app->res->layout->activity_main.xml write the code:
Run app in mobile device or Emulator (API 27–Android 8.1) and watch your video in format portrait or landscape.
Follow YouTube VideoTutorial:
Download project with Source Code from here:
Please subscribe here to our YouTube channel. Thank you!
Check next tutorials to learn all about Android.
For furtherquestionsleave a message.