An Android-based music player app built using Java, offering users the ability to browse, play, and control their favorite music tracks with a modern UI. This app showcases the usage of Android services, notifications, and media handling capabilities.
- Music Library: Browse all audio files from the Spotify API.
- Media Controls: Play, pause, skip, shuffle, and repeat tracks with ease.
- Background Playback: Listen to music while using other apps.
- Queue and Recently Played: Add songs to a queue and also view your recently played songs.
- Album Art: Displays album artwork for each track.
- Android Studio installed.
- An Android device or emulator with API level 34 or higher.
- On the emulator, Spotify currently must be installed for the program to function.
- User must have Spotify Premium in order for the playback to function correctly
-
Clone the Repository:
- Open a terminal and run:
git clone https://github.com/your-username/music-player-app.gitcd music-player-app
- You may also you Github Desktop for an easier set up by cloning
- Open a terminal and run:
-
Open in Android Studio:
- Launch Android Studio.
- Click on Open an existing project.
- Navigate to the
music-player-appdirectory and open it.
-
Build the Project:
- Allow Android Studio to download necessary dependencies and build the project.
-
Run on Device/Emulator:
- Connect your Android device or start an emulator.
- Click the Run button or press
Shift + F10to install and launch the app.
- Launch the app on your device.
- Sign in to your Spotify account and grant access to the application
- Either browse through your liked tracks, or albums/playlists.
- Tap on a track to start playback.
- Use media controls to play, pause, skip, repeat, or shuffle tracks.
- Click the + button to add the song to your liked tracks.
- Click the refresh button to refresh the tracks or albums/playlists to update in real-time.
- Use the search feature to search for songs, and add them to your liked songs or into your playlists/albums.
app/src/main/java/com/yourpackage/musicplayer/activities: Activity classesadapters: RecyclerView Adaptersmodels: Data modelsservices: Spotify API service
app/src/main/res/: Layouts, drawables, etc.AndroidManifest.xmlbuild.gradle
- Java: Core language for app development.
- Android SDK: For building the app.
- Spotify API: To handle audio playback.
- Notifications: For interactive media notifications.
- RecyclerView: For displaying lists of music tracks.
- SharedPreferences: To save user preferences.
Contributions are welcome! Follow these steps:
- Fork the project.
- Create a new branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
- Android Developers Documentation
- Spotify for API Documentations
- Alex





