title: How to know whether a MediaRecorder is in running state or not?
body: <p>I wrote a code to record audio of call conversation using MediaRecorder.</p>
  
  <p>how can i know whether a MediaRecorder is in running state or not, to stop the recording.
  like </p>
  
  <pre><code>boolean running;
  MediaRecorder mr;
  //what should i assign to running?        
  if(running){
     mr.stop()
  }
  </code></pre>
  
  <p>Above code is just an example.. If you do not understand my question, please tell me.. i will explain clearly with actual code..</p>
  
  <p>What all i want to know is "In which state the MediaRecorder is?" -> recording/released/prepared/initial/etc..</p>