I am working on new app development in android. I need to launch an audio recording app from my current appication and i have launched it by calling intent using
MediaStore.Audio.Media.RECORD_SOUND_ACTION
But now i need to get control to the media which is being recorded. I need to record only for 30 seconds. the recording should be stopped when it reaches 30 seconds.
Any suggestions??
Use the MediaRecorder like so :
Use a Timer/TimerTask to call stop() after 30 seconds.
Source: tutorial