Audio Record and Play

492 views.

Android has a built in microphone through which you can capture audio and store it , or play it in your phone. There are many ways to do that but the most common way is through MediaRecorder class.

Android provides MediaRecorder class to record audio or video. In order to use MediaRecorder class ,you will first create an instance of MediaRecorder class.

add data binding in app level gardle like below

activity_Main.xml

MainActivity.java

Manifest.xml

 

 

You may also like...

Leave a Reply