The technology used in this project
1: Network request and picture loading using volley framework
2: Play Music using MediaPlayer class
3: Data source using JSON parsing
4: The SQLite implementation used by the Login collection feature
5:android 6.0 Dynamic Permission request
Here is the run-time picture
The graph is so much, the music API interface calls the QQ music interface of the easy source data,
About the playback progress time, I remember I wrote, but did not find, here the idea to say, the specific idea is MediaPlayer play music can get the total size of music play, has played the position, using a timer, real-time to get MediaPlayer playback position, Then convert it to time, for TextView assignment, but this looks not very friendly, if other small partners have ideas can also leave a message to tell me, 3Q
Attached below is the project address: Link: Http://pan.baidu.com/s/1skT4kZN Password: rse1
APK: Link: http://pan.baidu.com/s/1slQwEiL Password: n4o6
Here to say, if you first install the APK please open the online music under WiFi because the online music request did not do page loading, there is the dynamic permission to apply for Android, click on local music when he will first apply for permission,
The UI does write ugly, but the implementation of the function is the main, so the UI do not spray!
Write your own music player demo Open source to those who need to learn, we have been on the road to programming progress,