The Android system provides the MediaPlayer control, which enables you to play audio.
From learning Android, when I was watching the tutorial, I thought that I would like to make a music player myself, because a complete music player has many functions, it involves many aspects of knowledge, which can help us better le
Project Online Demo Address: http://rose111.applinzi.com/GitHub Address: Welcome to star Https://github.com/midoxinxin/YueX-Music 悦心,一款音乐播放器应用。由“女立方”团队开发。眼下。较为流行的音乐播放器有QQ音乐、网易云音乐、多米音乐等。“悦心”音乐播放器的主要功能,提供音乐数据库,点击列表播放音乐,还可对歌曲进行收藏。加入专属音乐心情功能。1. During the song playback, the bubbles change dynamically with the music rhythm.2. Click on the disc. Stop music playback3. C
Use MediaPlayer to do simple music player, more content please go to Baidu experience view http://jingyan.baidu.com/article/60ccbceb63452364cab197f1.html"http://schemas.android.com/apk/res/android"Xmlns:tools="Http://schemas.android.com/tools"Android:layout_width="match_parent"Android:layout_height="match_parent"android:paddingleft="@dimen/activity_horizontal_margin"Android:paddingright="@dimen/activity_hor
There are many examples of suspended background music on the internet, most of which are broadcast to suspend music according to a paused instruction. In fact, this way is very unreliable, why? Because other players may not register to listen for that broadcast, most of them don't work.
Here's a more reliable way to m
Android Music playerUsing the Actiivity and service components to AndroidPlay Music using service componentsAction buttons, etc. use activity to interact with the userAt the same time, in order to turn the service process into a service process, to prevent the activity from destroying while still executing the service, need to use service-initiated mixed calls, t
Android app-simple and beautiful music players add phone monitors
In September 2nd, the simplified and beautiful music players started Stage 1
Stage 1 has completed the following functions:
1. automatically display the music list
2. Click the list to play the music
Starting from this article, the implementation of a music player is described in detail, as well as the ability to get the latest recommended songs and download songs from the network parsing data.Features are described below:1. Get the local song list and play the song function.2, using hardware acceleration sensor, shake the phone to achieve the function of swi
Android audio and video goes deep into thirteen OpenSL ES to create a music player, which can pause and adjust the volume (with source code download), androidopensl
Project addressHttps://github.com/979451341/OpenSLAudioOpenSL ES is a public audio API developed based on NDK, that is, the underlying C language. It can be used to achieve standardized, high-performance, and low-response-time audio functions.Th
With two days of free time, research has written a class Win8-style Android music player that implements most of the basic functions. Here's a look at the specific description:Basic implementation Features:Note: Android system version must be above 2.2, to ensure that the phone installed SD card (some icons to QQ music
Self-developed Win8-style Android music player application source code (standalone version), win8android
I spent two days in my spare time studying and writing a Win8-style android music player, which implements most of the basic functions. The specific description is as follows:
Basic functions:Note: The
Original address: http://www.cnblogs.com/wynet/p/5526905.htmlHere are two ways to play a resource file:The first kind,The Assets class resource is placed in the assets subdirectory of the project root, which holds some original files that can be organized in any way. These files will eventually be packaged in the APK file in the original way. If we want to access these files in the program, we need to speci
list is the song name, and the right is the corresponding song size (bytes).Tap a song and go to the play page to play, pause, and stop the music. Adjust the progress bar to adjust the progress of the song playback, the lyrics adjust accordingly:First of all, from the local music list to talk about, relatively simple first look at the code:Import Java.util.arraylist;import java.util.hashmap;import Java.uti
How to add a menu for setting dual-card ringtones in android Music
1. Enable the scenario mode to set the feature of the dual-card ringtone: MTK_MULTISIM_ROINGTONE_SUPPORT, but the dual-card ringtone cannot be set in Music. To add "Us as SIM1/SIM2 ringtone" in Music"
1, string. xml, add the new string ringtone_as_sim
The player features are as follows:
1. Pause, play2. Drag bar implementation, fast forward, rewind3. Sync Lyrics4. Next song, last one.5. Album Image display6. Background playback, notice bar display7. Call, pause, end of call, start playing.The interface is as follows:
When playing, there will be an icon in the notification bar. Paused, Icon disappears
Background playback, will be displayed in the notification bar, click, you can enter the playback interface
Use details:Download the
Recognize audio streams
The first step to creating an excellent audio experience is to understand the type of audio stream that your application will use.
The Android system maintains independent audio channels for playing music, alarms, notifications, incoming call ringtones, system sounds, and call calls.) volume, and DTMF tone keyboard dialing ).
In this way,
an analysis of the realization of Android music idiomsBelow isThe catalogue works as follows:specific implementations and issues encountered in the process of writingThe first step: Build a database, such as a large number of data, you can use the EXECL table to do, and then navict visualization tools, import intoload the data database into the project, create a raw folder under the Res directory, Dbopenhel
After the basic Android training is complete, you can create a simple music player. For the first small Android project, baseline the picture ~~~~
The UI is inspired by the fact that thunder looks at the player and plays the mediaplayer class when audio is used in Android.
The audio track control is more complex
Today, the study of the slag to play music with MediaPlayer to add a progress bar, the progress bar is now using the Android comes with the Seekbar, later will be followed by the UI, on the basis of the previous ability to play music, now add the main features are two:1 show playback progress in real time2 Manually adjust the playback progressNow learn to build a
,context.bind_auto_create); You can, of course, start the service in a startservice way, so that when you end the activity, it does not end service}
Private String transfermillitotime (int millis) {dateformat format = new SimpleDateFormat ("Mm:ss");
String result = Format.format (new Date (Millis));
return result; Private class Musicreceiver extends BROADCASTRECEIVER{//3 @Override public void onreceive (context context, Intent Intent) {//TODO aut
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.