title: how to record audio file with better quality in android?
body: <p>I am creating one application which play recorded file on Android to iphone and vice-versa.</p>
  
  <p>now I am using ,</p>
  
  <pre><code>        audioRecorder = new MediaRecorder();
          audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
          audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
          audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
  </code></pre>
  
  <p>file recorded using this code having size 85 kb /15 sec and a very poor quality.</p>
  
  <p>if I use ,</p>
  
  <pre><code>        audioRecorder = new MediaRecorder();
          audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
          audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
          audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  </code></pre>
  
  <p>then file size is 25kb/15 sec and quality much better than aac.
  but problem is that <strong>AMR</strong> is not playable in iPhone.</p>
  
  <p>So please suggest recording schema for Android having better quality, affordable size and can play on iPhone also.</p>