title: How to set timer on voice note while recording (same as WhatsApp voice message recording feature)?
body: <p>I'm building a chat app which having voice message feature but while recording  couldn't get any feeler or timer like "WhatsApp" so can anybody have this solution 
  I tried the code of developer Android but could find such a solution.</p>
  
  <pre><code>btn_voice.setOnTouchListener(new View.OnTouchListener() {
  @Override
  public boolean onTouch(View v, MotionEvent event) {
  if (event.getAction()==MotionEvent.ACTION_DOWN)
  {
   startRecording();
  }
  else if(event.getAction()==MotionEvent.ACTION_UP)
  {
      stopRecording();
  }
  return false;
  }
  });
  </code></pre>