Capture audio from android app
<p>I am trying to capture audio from the app. </p>

<p>I use: </p>

<pre><code>Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, Constants.RESULT_UPLOAD_AUDIO);
</code></pre>

<p>As soon as I click the capture audio button, I am returned back to the app in onActivityResult(int requestCode, int resultCode, Intent data), where data is null.</p>

<p>It works fine for video:</p>

<pre><code>Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
startActivityForResult(intent,Constants.RESULT_UPLOAD_VIDEO);
</code></pre>
