Android Implementation MP3 player

Source: Internet
Author: User

Android Implementation MP3 player

Before the exam, this well-done project has not had time to summarize. Although in the period of doing the project, the use of the various techniques are recorded as a blog, but there should be a general summary and summing up.

This is the first large-scale project of its kind, which is the project that the Mars big video last introduced in the first quarter. But I insist on doing it, or receiving a lot of goods. I finished a full project, and in the video to see the Mars big PA's keyboard hit the past is a completely different feeling, the process of encountering countless difficulties, their own to overcome the countless difficulties, only to do it once again, can really have some experience.

OK, here's a quick introduction to this simple MP3 player.

First, a mind map was drawn. In the video to see the Mars greatly used mindmanage looks good tall on the look, he also went under a painting, and then looked at the price of the genuine software. Oh...

The general idea of this MP3 player is to open the app, connect to a remote server, download a MP3 information XML file on a remote server on the remote server, parse the XML file, get MP3 information, extract all the information, Generates a ListView-form playlist to display. Then click on the ListView entry, click on the name of the MP3 to go to the server to retrieve, with a service to download the MP3 file to local. The local MP3 playlist is generated based on the local MP3 information. Finally, when you click on the playlist, download the lyrics file, open playeractivity, play MP3 and sync the lyrics

The idea does not seem difficult, but the implementation still has a lot of code. Server Building, network programming, Listview,xml Sax parsing methods, communication between activity, file control, lyrics parsing, audio file playback, service usage, handler asynchronous mechanism, etc...

This is the remote server list on the two songs, say Tomacat is still very useful, as long as the file into the WebApps inside, and then access to their own IP address under this directory can directly access, download these files. Feel good fun, later have time must learn this how to use, in fact, the back end is very good to play. The size of this file is I am lazy to write a few numbers directly.

This is the playlist that was obtained by scanning the local folder, the file size is normal AH. And then click on the song to play, Haha, to a my favorite carefree sigh, miss my spirit and the moon.

Do not abandon my picture is too ugly, below that three Big Mac button, I am also drunk. Play, pause, exit. Well, a word of the past, the voice of the voices of the tide to the East flow

Complete the first count of the app on the project is like this, in fact, I think Mars this MP3 is too creative, so there is no future of wood. actually can not MP3 ah, change into a video player is fine, network to get video list, download, then get playlist, click Play Video, become a small and concise video player, I think there is a bit of market. So, I copied the first two-thirds of this project and thought about when to make a video player so small.

But I won't tell you this video player market should be 1024 such a popular video site. So afraid to do ah, good fear ah, to be responsible for good.

All right, no nonsense. You see the distant scenery just right, juvenile, deserted past is not terrible, plant a tree the best time is 20 years ago, followed by now. Ran forward, and greeted with a cold face and laughed.

Android Implementation MP3 player

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.