Android Implementation MP3 playerBefore 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
Learning to develop Android for a year, think about this year's efforts, and indeed harvest a lot. Also found a better job. Today you are ready to share a project that was previously practiced in the beginner stage. Through this project I really found the development of the feeling of Android software, and gradually entered the formal development of Android. This
add some beautiful girls to the background, just add background to the layout file. Here we will focus on logic, if you don't talk about these fancy things, how can you switch from the first activity to the second activity? We need to use our powerful Intent. Intent can implement the conversion of one activity to another. When you click a song, the playing interface needs to know that you are playing the magic horse. A series of Song information needs to be passed to the second interface. This
function, just add a line of code to complete. Private void Play(intCurrentTime) {Try{Mediaplayer.reset ();//Restore the parameters to their original stateMediaplayer.setdatasource (path); Mediaplayer.prepare ();//BufferingMediaplayer.setonpreparedlistener (NewPreparedlistener (currenttime));//Register a listenerINITLRC ();//Update playback statusIntent Intent =NewIntent (Play_statue);//Send the completed signal, update the playback statusIntent.putextra ("Playstatue",true); Sendbroa
Scan local file to load to itemNot limited to apps to music player, other Android works, can also use SdcardsearchtolistOther Android projects can also be used, I have now done a very small demoLater will post, will be in the player, add this function, to achieve just downloaded music, loaded into the playerThis demo s
that was obtained before the activity was bound to the service. whenever the activitybinder.transact (0, data, reply, 0); When invoked, the service invokes the Ontransact method, loads the obtained data into the parcel object reply, and then the entire The IBinder object returns activity. MP3 player This is finished, may be very messy, I hope to help you, source code download Link: http://download.csdn.n
reply,
Int flags) throws RemoteException {
String str = data.readString();
Int currentPosition = mediaPlayer.getCurrentPosition();
Float s = (float)currentPosition/mediaPlayer.getDuration();
If(isPlay)
reply.writeFloat(s);
Return super.onTransact(code, data, reply, flags);
}
Yes, I do. It is the IBinder object that was obtained prior to the activity and service binding. whenever the activitybinder.transact (0, data, reply, 0); The service calls the Ontransact method. Load the acquired
Playing MP3 in Android is very simple and often used in projects, such as background music for projects and prompts for certain functions in applications. It is widely used. Here is a simple example:
Layout file Configuration:
Java implementation file:
/*****/Package COM. demo. media; import android. app. activity; import a
Compile an Mp3 player based on GStreamer and an mp3 player based on gstreamer
I. Introduction
The author's system is CentOS6. Based on this, this article develops Mp3 players and uses the mp3 decoding library libmad and gstreamer
The path to the java siege lion (Android)-MP3, MP4, photography, internationalization, style themes, image movement and scaling, android-mp3
I. MP3 player
View the Android API documenta
We recommend the beautiful flash web MP3 music player,
Source: PHP development learning portal
Address: http://www.phpthinking.com/archives/491
When creating a webpage, if you want to insert mp3 music into the webpage to increase the interaction of the webpage and improve user experience, it is necessary for the webpage music
Article Source: PHP Development Learning PortalAddress: http://www.phpthinking.com/archives/491In the Web page production, if want to insert MP3 music in the webpage to add the interactive feeling of the webpage, enhance the user experience degree, this time the webpage music player is very necessary, the general situation if uses the background music to play the words to have several very unfriendly places
I. design question: Arm-Based MP3 Player Design
Ii. Course Design Teaching Purpose:
1. Understand and master the general design methods of system circuits, and have preliminary independent design capabilities;
2. Master the principles of Unix/Linux systems;
3. Improve the ability to analyze and solve problems independently using the learned theoretical knowledge;
4. Master the development process of ARM tec
Article Source: PHP Development Learning PortalAddress: http://www.phpthinking.com/archives/491In the production of Web pages. If you want to insert MP3 music into the Web page to add interactivity and enhance user experience, this time the Web music player is very necessary. In general, it is assumed that there are several very unfriendly places to play with background music.1. The user cannot pause when t
Article Source: PHP Development Learning Portal Address: http://www.php#thinking.com/archives/491 (go to some #) In the Web page production, if want to insert MP3 music in the webpage to add the interactive feeling of the webpage, enhance the user experience degree, this time the webpage music player is very necessary, the general situation if uses the background music to play the words to have several ver
Using the Window Media Player control, I made a small mp3 Player to listen to music. Is it really enjoyable? I just wrote it today. It sounds good to listen to mp3. If you have less time to talk about it, go to the topic.
Mp3 players provide the following functions:
1. Add
We will soon see another Golden Week, and a new round of buying boom in the digital market. Although it is not until May 1, many brands have begun to promote food and grass, and have quietly launched new products and promotion plans, next let's take a look at the most worth buying MP3 players of less than 300 yuan before the fifth festival.
Gemei x28
Gemei currently launched an MP3
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.