static void StartRecording() { var downloadsDir = Path.Combine(AGEnvironment.ExternalStorageDirectoryPath, AGEnvironment.DirectoryDownloads); var fullFilePath = Path.Combine(downloadsDir, "my_voice_recording.3gp"); AGMediaRecorder.StartRecording(fullFilePath); AGUIMisc.ShowToast("Start recording to file: " + fullFilePath); }
public void OnStopRecording() { var recordingWasStopped = AGMediaRecorder.StopRecording(); AGUIMisc.ShowToast(recordingWasStopped ? "Stopped recording" : "Failed to stop recording"); }