title: How to limit audio recording time using Intent?
body: <p>How can I limit recording when using intents?</p>
  
  <p>I tried this code:</p>
  
  <pre><code> Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
   intent.putExtra("android.intent.extra.durationLimit",5);    
   startActivityForResult(intent,RQS_RECORDING);
  </code></pre>
  
  <p>This code works fine when I record video. Time is countdown from 5 to 0 and after 5 seconds recording automatically stops. But this limited time does not work when I record sound. Why?</p>
  
  <pre><code>Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
  intent.putExtra("android.intent.extra.durationLimit", 5);
  startActivityForResult(intent, RQS_RECORDING);
  </code></pre>
  
  <p>Why does this 5-second time limit not work when I record sound?</p>