# MusicPlayer **Repository Path**: Jackzhou1/music-player ## Basic Information - **Project Name**: MusicPlayer - **Description**: ๐ต ๅบไบๅ็ Java ๅผๅ็็ฎ็บฆ Android ้ณไนๆญๆพๅจใๆฏๆๅๅฐๆๅกๆญๆพใ้็ฅๆ ๆงๅถใMaterial Design ็้ขใ้ถ็ฌฌไธๆนไพ่ต๏ผ็บฏๅๅ็ๅผๅใ - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-04 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ๐ต MusicPlayer > **A minimalist Android music player built with native Java** [](https://developer.android.com/) [](https://www.oracle.com/java/) [](https://developer.android.com/guide/topics/manifest/uses-sdk-element) [](LICENSE) --- ## ๐ Features - ๐ถ **Native Music Playback** - Built with Android MediaPlayer API - ๐ **Notification Controls** - Play/Pause/Next/Previous from notification bar - ๐ฑ **Foreground Service** - Continuous playback even when app is backgrounded - ๐จ **Material Design** - Clean and intuitive UI - โก **Zero Dependencies** - Pure Android SDK, no third-party libraries - ๐ **Privacy First** - No permissions required, no data collection --- ## ๐ธ Screenshots ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ ๐ต MusicPlayer โ โ โ โ โโโโโโโโโโโโโโโโโ โ โ โ โซ โช โซ โช โซ โ โ โ โ โ โ โ โ ๆญไบ็ๅผฆ โ โ โ โ ๅจๆฐไผฆ โ โ โ โ โ โ โ โโโโโโโโโโโโโโโโโ โ โ โ โ โโโโโโโโโโโโโโโโ โ โ โ โ [โฎ๏ธ] [โถ๏ธ] [โญ๏ธ] โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` --- ## ๐ ๏ธ Tech Stack | Component | Technology | |-----------|------------| | Language | Java 8 | | UI Framework | Android View System | | Media | MediaPlayer | | Background | Foreground Service | | Notifications | NotificationCompat | | Architecture | Service + Activity Binding | --- ## ๐ฆ Build & Run ### Prerequisites - Android Studio Hedgehog | 2023.1.1 or later - JDK 8 or higher - Android SDK 30+ ### Quick Start ```bash # Clone the repository git clone https://github.com/JackZho/MusicPlayer.git cd MusicPlayer # Open in Android Studio and run # Or build via command line ./gradlew assembleDebug # APK location: app/build/outputs/apk/debug/app-debug.apk ``` --- ## ๐ Project Structure ``` MusicPlayer/ โโโ app/ โ โโโ src/main/ โ โโโ java/com/demo/musicplayer/ โ โ โโโ MainActivity.java # Main UI & user interactions โ โ โโโ MusicService.java # Background music playback โ โ โโโ Song.java # Song data model โ โโโ res/ โ โ โโโ layout/ โ โ โ โโโ activity_main.xml # Main UI layout โ โ โโโ raw/ โ โ โ โโโ dldx.mp3 # Built-in song: ๆญไบ็ๅผฆ โ โ โ โโโ dd.mp3 # Built-in song: ๅๅธฆ โ โ โโโ drawable/ # Icons & graphics โ โ โโโ values/ # Strings, colors, themes โ โ โโโ xml/ # Backup rules โ โโโ AndroidManifest.xml โโโ build.gradle โโโ README.md ``` --- ## ๐ฏ Core APIs Used ```java // MediaPlayer for audio playback MediaPlayer mediaPlayer = new MediaPlayer(); // Foreground Service for background playback startForeground(NOTIFICATION_ID, notification); // Service binding for Activity-Service communication bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); // Notification with media controls NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID); ``` --- ## ๐ Permissions This app requires **minimal permissions**: | Permission | Purpose | |------------|---------| | `WAKE_LOCK` | Keep CPU awake during playback | | `FOREGROUND_SERVICE` | Run music service in background | | `POST_NOTIFICATIONS` | Show notification controls (Android 13+) | > ๐ **Note:** No storage permission needed - all music files are bundled as app resources. --- ## ๐ฑ Device Compatibility | Android Version | Status | |-----------------|--------| | Android 11 (API 30) | โ Supported | | Android 12 (API 31) | โ Supported | | Android 13 (API 33) | โ Supported | | Android 14 (API 34) | โ Supported | --- ## ๐ง Roadmap - [ ] External storage music scanning - [ ] Playlist management - [ ] Equalizer settings - [ ] Album art display - [ ] Dark mode toggle - [ ] Swipe gestures --- ## ๐ License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ``` MIT License Copyright (c) 2026 JackZhou ``` --- ## ๐ค Contributing Contributions are welcome! Feel free to: 1. Fork the repository 2. Create a feature branch (`git checkout -b feature/amazing-feature`) 3. Commit your changes (`git commit -m 'Add amazing feature'`) 4. Push to the branch (`git push origin feature/amazing-feature`) 5. Open a Pull Request --- ## ๐ฌ Contact - **GitHub**: [@JackZho](https://github.com/JackZho) - **Gitee**: [@Jackzhou1](https://gitee.com/Jackzhou1) ---