Search code examples
androidandroid-serviceandroid-music-playerandroid-statusbar

MusicPlayer in Android status bar


I have an Android app which plays mp3 files. I have programmed its main functions like play/pause forward, backward buttons, manipulating by SeekBar, getting current position and so on. Now I want to make my app to continue playing even I closed my app. And when I close it, I want to appear thing like widget in status bar with basic actions (displaying app icon, track name, play/pause button). And also, I want to SeekBar work properly when I reopen my app. Can anyone help me. I'm beginner in Android Java, so it would be perfect if your answer contains steps. Thanks beforehand


Solution

  • I think this tutorial perfectly match your query

    Android custom notification for music player Example