Write your own music player demo Open source to those who need to learn, we have been on the road to programming progress,

Source: Internet
Author: User

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,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.