Android MediaRecorder ExampleMediaRecorder class can be used to record audio and video files. After recording the media, we can create a sound file that can be played later. In this example, we are going to record the audio file and storing it in the external directory in 3gp format. activity_main.xmlDrag 2 buttons from the pallete, one to start the recording and another stop the recording. Here, we are registering the view with the listener in xml file using android:onClick. File: activity_main.xml
Activity classFile: MainActivity.java
Output:![]() ![]()
Next TopicAndroid TextToSpeech Tutorial
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week