Android App Development: Create a Spotify Clone

Stream your music collection and learn how to play and control music on Android
4.4 (39 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
1,233 students enrolled
25% off
Take This Course
  • Lectures 58
  • Length 6 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 2/2016 English

Course Description

Music is one of the biggest app categories on Google Play. You have the potential to earn substantial revenue from any music app you create!

Learn the basic concepts, tools, and functions that you will need to build a fully functional Android music streaming app with the programming language, Java. Also learn how to set up your own server and upload music that your app will eventually play.

Things You'll Learn

  • Android Studio Installation and Setup
  • Basic Streaming Functions on Android
  • How to Setup a Server (free or paid)
  • How to Automate Music File indexing on a Server Using PHP (no PHP experience necessary)
  • How to Make an Android App Communicate with a Server
  • How to Add Lock Screen Controls
  • How to Handle Audio Interruptions like Phone Calls
  • How to Create List Views and Custom List View Rows on Android
  • Dynamically Add More Data to Your App and Remote Database
  • Liking a Track Through Your Remote Database

Powerful Skills at Your Fingertips
By learning to create both Android apps as well as PHP and MYSQL backends you will become incredibly valuable to potential employers. Combining these 2 skills is the number one reason developers get hired for startups. Those startups need this information and are willing to pay for it!


Not only do you learn the ins and outs of streaming music on Android apps but this course includes a MASSIVE bonus. I teach you how to create and setup a fully functional server that does the following:

  • Automatically scan for new music uploads and add them to a MYSQL database (with no input required from you)
  • Produce PHP files that allow your app to access a backend


Content and Overview
No knowledge is needed of programming for this course but it helps. If you are a complete beginner then please take simple Java basics course FIRST.

You will be taken on a journey through:

  • How to choose between free or paid servers
  • How to code a simple streaming function on Anroid
  • How to add advanced audio features to your app
  • How to make your app talk to a server (aka - creating a backend)
  • How to report app usage statistics to your remote database

This course establishes a strong understanding of music app creation concepts and includes training on Android and Java. It also includes training on MYSQL, PHP and cPanel. Each chapter starts with an introduction and ends with a summary to help you learn even better.

Complete this course and you'll have skills that are continuously in demand from most businesses.

Increase your value by joining now!

Credit: Promo music provided by Ben Sound

What are the requirements?

  • A PC or Mac running Android Studio (free)
  • Access to a server (free or paid) running cPanel (most servers run cPanel)

What am I going to get from this course?

  • Create an Android Music Streaming App
  • Create a Fully Functioning Server to Stream any Media They Like
  • Understand the CORRECT way to Play Music on Android (vital information)

Who is the target audience?

  • Those who have coded a little bit in any language should take this course
  • Complete beginners should take a Java course first (even a short one will help)

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction and Environment Setup
Setup Android Studio and Simulators on a Mac
Setup Android Studio and Simulators on a PC (Windows)
Section 2: Server Setup and Testing
Introduction to Server Setup

Free servers are everywhere but they are overcrowded. It's always better to opt for a paid server over which you have much more control. The good news is you can get for less than $5 per month (includes a domain). If you intend to develop apps in the future then having your own test server is a really good idea!

The next sections are labelled one or two. Choose the most appropriate one for your use case.

Option 1: Setting up a Free Server
Option 2: Setting up a Paid Server (Much More Control)
How to Upload Your Files to a Server
Create Your Server Database Using cPanel
Create a PHP Script to Add Uploaded Music to the Database - Part 1
Create a PHP Script to Add Uploaded Music to the Database - Part 2

We navigate to the server address containing our MP3s. If they play then the server is setup and ready to rock and roll!

Section 3: A Really Simple Android Music Streaming Function
Introduction to Simple Streaming
Setting up our Project in Android Studio
How to Create a Simple Streaming Function in Android
Correct Threading Patterns for Android Streaming Audio
Summary of Really Simple Android Music Streaming Function
Section 4: Basic Control of Media Players on Android
Introduction to Basic Control of Media Players on Android
Adding a Play Pause Button to our App
Connecting up the Streaming Player and the Play Pause Button
How to Toggle the Play Pause Button Icon
Debugging an Android App
Summary of Basic Control of Media Players on Android
Section 5: Background Audio Streaming on Android using Services
Introduction to Background Audio Streaming on Android using Services
What is an Android Service?
Creating an Android Service to Play Music
How to Communicate From a Service to an Activity on Android
How to Communicate Between an Activity and a Service - Binding
Summary of Background Audio Streaming on Android using Services
Section 6: Advanced Audio Streaming Features on Android
Introduction to Advanced Audio Streaming Features on Android
Moving a Service to Foreground - Part 1
Moving a Service to Foreground - Part 2
Moving a Service to Foreground - Part 3
How to Request Audio Focus on Android
How to Respond to Audio Interruptions on Android
How to Handle Earphone Unplugging on Android
Summary of Advanced Audio Streaming Features on Android
Section 7: Retrieving a List of Songs from a Remote Database
Introduction to Retrieving a List of Songs from a Remote Database
Creating the PHP Access Script to Return Database Results to our App
How to Make a Web Call to a Database on Android
Creating the Song Class to Hold Retrieved Music
Parsing PHP Results into a List of Songs
Summary of Retrieving a List of Songs from a Remote Database
Section 8: Displaying a List of Songs in a List View on Android
Introduction to Displaying a List of Songs in a List View on Android
What is a List View Exactly?
Creating a List View (termed ListView) using Android Layouts
How to Create Custom Rows for Android List Views
How to Populate a List View and its Custom Row with Data
Starting Music Playback When a List View Item is Tapped
Summary of Displaying a List of Songs in a List View on Android
Section 9: Adding Extra Functionality to our Spotify App
Introduction to Adding Extra Functionality to our Spotify App
Creating a PHP Script to Increment Number of Plays in our Database
Keeping Track of Each Time a Song is Played
Creating a PHP Script to Like a Track in our Database
How to Like a Playing Song
Summary of Adding Extra Functionality to our Spotify App
Section 10: Summary and a Gift For You
Summary of Everything You Have Learnt
Final Thank You and a Free Gift

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Mr Grant Klimaytys, Professional App Developer and Teacher

Swift 3 on iOS, a little Java here and there and C# for Xamarin. I'll show you how to use them all!

When you learn from me you learn in an holistic manner. You learn concepts that are applicable to ALL mobile systems.

My aim is to get you qualified mighty fast, with very little hair tearing from frustration!

And what does that mean for you?

You'll be able to make your own apps to earn passive income. Or you could become a freelance developer which I can honestly say it is the best life in the world. You will have no boss and earn an hourly rate of over $100. You can also take holiday whenever you want!

Of course you have to learn how to make good apps first so take my courses now and you will see how easy mobile app development can be!

Ready to start learning?
Take This Course