Code example for MediaRecorder

Methods: releaseresetsetOnErrorListenersetOnInfoListener

0
      Log.i(TAG, "starting");
      recorder.start();
    } 
 
    void stop() { 
      recorder.setOnErrorListener(null);
      recorder.setOnInfoListener(null);
      recorder.stop();
      recorder.reset();
      recorder.release();
    } 
  } 
 
  /* 
   * This is null when not recording, and contains the active RecordingState 
   * when recording. 
   */ 
  private RecordingController controller;
 
  public SoundRecorder(final ComponentContainer container) {
    super(container);