Sound Recorder In Android Development

Sound Recorder in Android Development

This example shows how to record sound and save it to SD card it.

Algorithm:

1.) Create a new project by File-> New -> Android Project name it SoundRecorder.

2.) Write following into main.xml:

 

 

 

3.) Write following into manifest file:

 

 

 

4.) Run for output.

Steps:

1.) Create a project named SoundRecorder and set the information as stated in the image.

Build Target: Android 4.0
Application Name: SoundRecorder
Package Name: com. example. SoundRecorder
Activity Name: SoundRecorder
Min SDK Version: 8

2.) Open SoundRecorder.java file and write following code there:

 

 

 

3.) Compile and build the project.

Output

Comments 9

  1. Hi. i tried the code above, however when i check the file directory for the saved audio file, i could not find it and it keep saying that the file is empty.

    Please help.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">