I had some free time the other day and was interested in utilizing the Android MediaPlayer framework to create a simple music player Android App. The app should have a play and stop button, show the progress of the playing song, and have a status label that displays the current state of the media player.
Have you ever wanted to send custom events from an Android Service to an Activity or from an Activity to a Service with strongly typed event data? I have and here is a really interesting way to accomplish this by leveraging the LocalBroadcastManager class. Please note that the LocalBroadcastManager class is included in Android 4.0