Accessing ViewModel inside Views on Android

ViewModel Overview The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configuration changes such as screen rotations. If you are building an app of considerable complexity, it is recommended to stick to the MVVM architecture. This…

A review of mobile development frameworks

I don't usually do these kinds of posts because each framework has its pros and its cons. What works great for one team might not work for the other and what works for one project might not work for another. I put this first for people who find this post…

Audio Processing on Android using TarsosDSP

TarsosDSP is a Java library for audio processing. Its aim is to provide an easy-to-use interface to practical music processing algorithms. It comes prebuilt for Android in form of a jar that can be just dragged into any Android project to get going. This post will touch some basics of…

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…

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…