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 documentation to see the MediaPlayer status transition
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and communication. For more information, indicate the author and its source.
**************************************** **************************************** ************/
1. Introduction to Android audiotrack
I
Android NDK Development (6)-use open-source LAME to transcode mp3 and androidndk
Reprinted please indicate the source:Http://blog.csdn.net/allen315410/article/details/42456661
In the previous blogs in this column, I talked about some Android NDK development basics, from environment setup to using JNI for mutual calls of Java and C code, in addition, the Demo is s
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
This article introduces the compilation and use of ffmpeg in ANDROID/NDK environment, FFmpeg comes with H264, AAC, MP3 decoder, but there is no (or no good) corresponding encoder. The corresponding encoder requires the use of a third-party library. The recommended third party libraries is x264 (H264 encoding), FDK_AAC (AAC encoding), lame (MP3 encoding).In order,
Copyright Notice:Welcome reprint, but please keep the original source of the articleGavinctSource: http://www.cnblogs.com/ct2011/p/4080193.htmlThe formats supported by Android recordings are AMR, AAC, but these two audio formats do not perform well across platforms.MP3 is clearly the best cross-platform choice.Recently due to project needs, the implementation of this demand, code hosting on GitHub, Welcome to shoot BricksProject AddressGavinct/android
MediaPlayer is implemented at the underlying layer based on the OpenCore (PacketVideo) Library. To build a MediaPlayer program, the upper layer also contains inter-process communication and other content, the basis for inter-process communication is the Binder Mechanism in the basic Android library.In today's example, we only use MediaPlayer to play a beautiful English brother love foolton In the res/raw folder. The program has three ImageButton butto
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
Android MP3 recording implementationAndroid recording supports amr and aac formats, but these two audio formats do not work well across platforms. MP3 is obviously the best cross-platform choice. Recently, due to project requirements, this requirement has been met. The code is hosted on Github. For details about how to use GavinCT/AndroidMP3Recorder, see README.
Android MedieCodec hard decoding mp3 and wma
1 mediecodec supports more than 4.1 of systems and is a class of Google SDK.
2. decoding mp3 and wma audio files
3. Before decoding, The MediaExactor needs to extract the file information, including the file type, sampling rate,
Package com. dawin. mediacodec; import java. io. IOException; import java. nio. byteBuffe
There is no doubt that activity is a very important thing to learn about android. 1: What is the activity component ?? It can be used to display a layout file. And responds to click and touch events on your layout file. It's a bit difficult. Let's talk about the image. If you have used an android mobile phone, you will see an interface. to exaggerate, all of them are activity, menu interface, setting interf
/*************************************************************************** * Android command line play MP3 music * Note: * Sometimes we will encounter touch not use, and no mouse, but we want to test the sound card on Android, so we will think of the ADB or debug terminal using the command line to play the sound. * 2016-5-26 Shenzhen Nanshan Ping Shan village Z
, Java programmers define some native methods on the Java side and provide these methods to C programmers in the form of a C-language header file.|-Then, c programmers use the C language to implement functions defined in the header files provided by the Java programmer.|-Next, the C programmer packages the function into a library file and gives the library file to the Java programmer.When the Java program executes, if the native method is called in a class, the virtual opportunity passes through
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
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
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.