Reputation: 5415
Im launching the default voice recorder using the following:
Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, soundVal);
This works fine but when a user hits the stop button they are prompted to play the sound and then allow to record more. I would like for the recorder to close as soon as the user pushes the stop button and return to my activity so I can do what I need with the sound file that has been created. Is that even possible? If not then I guess I would need to build my own custom recorder.
Upvotes: 1
Views: 155
Reputation: 23389
I think you're right, you may need to either write your own custom recorder or maybe scan the SDCard to see if you can find the file (risky).
To write your own custom recorder, you have several options:
the other choice you COULD try to do is to monitor the SDCard, and if there's been any new sound files that was recently added, you'll know it's most likely from the default voice recorder... however, this approach is a bit limited in that some devices don't write out their voice files to SDCard (although i think most do).
Upvotes: 1