RTF Files and Attributed Strings

If you've ever tried setting up a UITextView in Storyboard, you might already know that it's an annoying task. The customizations don't work often and it's easy to mistakenly clear all styles with no way of coming back (unless of course you are using version control and don't have other…

Handling Local Music Playlists

This is the final of the 6 post series where we built a music player app from scratch. A quick recap of what we have done so far. We learned the basics of playing music using Media Player on Android. The Media Player is implemented in a Service so we…

Creating a global toolbar (mini music player) on Android

Although this post is self-contained, you might be interested in reading the complete series on creating a music player for Android. First let's start with a description of what we want to achieve with this mini player. It should be simple enough to be embedded in all activities when the…

Creating a Music Player UI on Android

If you haven't followed other posts in the series, I recommend you do so before going on with this one. We have already set up a Service that can play music from the background, take care of reading local files as well as online streaming and created lock screen and…

Android Music Player Controls on Lock Screen and Notifications

If you are just starting out, I recommend reading the first (basics about Media playback on Android) and second (Creating a Service to Play Music in the background) parts before proceeding. This post will discuss how to show Media Player controls on the lock screen and the notifications. Managing a…

Playing music in the background on Android

If you haven't read the first part, read it first to learn the basics about Media playback on Android. Playing music in the background If you want your media to play in the background while the user is interacting with other applications, then you must start a Service and control…