Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Want to launch default Voice recorder from application to capture audio

Tags:

android

How can I launch default voice recorder available in device to record voice? I want to do that using startActivityForResult so that captured voice data I can get back in my activity (similar to when we launch camera to capture image). I don't know the intent action to perform this.

How can I do this. Any ideas?

like image 261
AndroDev Avatar asked Dec 02 '11 06:12

AndroDev


1 Answers

I think RECORD_SOUND_ACTION is what you're looking for.

Example:

Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); 
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);
like image 191
Jasper Avatar answered Nov 01 '22 06:11

Jasper