Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can anyone give code for voice recorder as an application on android phone? [closed]

I want to develop an application on android phone regarding voice recorder. I have to record a sound for about 30 seconds and then stop and save the recorded sound in gallery. Can anyone post the code if you have please?

like image 705
gowtham Avatar asked May 10 '10 08:05

gowtham


People also ask

Does voice recorder work when phone is locked?

It introduces a lock screen widget for the Voice Recorder app, which means that you can activate it from the Settings menu and start recording voice directly from the lock screen for faster and easier access. The new widget is only available on devices running Android 11 (or newer).

Are voice recording apps secure?

The Call Recorder app has a major vulnerability. According to Anand Prakash, a security researcher and founder of Pingsafe AI, a vulnerability was discovered with the Call Recorder app that allows anyone to listen to a call that has been recorded and saved to the cloud using the service.

Which permission is required to record an audio in Android application?

Requesting permission to record audioRECORD_AUDIO is considered a "dangerous" permission because it may pose a risk to the user's privacy. Starting with Android 6.0 (API level 23) an app that uses a dangerous permission must ask the user for approval at run time.

Is there a secret voice recorder app?

Smart Recorder is the best secret voice recording app for Android users. The app can record surrounding voice even when the display is off.


2 Answers

There is an example of how to do audio capture using MediaRecorder in the Android Developer Documentation.

I would recommend saving the files on the SD Card and then have your gallery code check the SD card to see which files to display. You can get the directory of the SD Card using the Environment.getExternalStorageDirectory() method. It would be best to save your files in a subdirectory of the SD Card root directory.

Make sure you give your applications the Permissions it will need. At the very least it will need RECORD_AUDIO and WRITE_EXTERNAL_STORAGE.

like image 105
Dave Webb Avatar answered Sep 18 '22 07:09

Dave Webb


Can you check this link:http://www.androiddevblog.net/android/android-audio-recording-part-1 and http://www.androiddevblog.net/android/android-audio-recording-part-2

like image 36
nav Avatar answered Sep 21 '22 07:09

nav