title: Android MediaRecorder - Start Failed: -2147483648 on 2.3.3
body: <p>The MediaRecorder works on other versions of Android but not on 2.3.3:</p>
  
  <pre><code>try {
  
      MediaRecorder mRecorder = new MediaRecorder();
      mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
      mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
      mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
      mRecorder.setOutputFile( path + "r_" + FileName );
  
      int version = android.os.Build.VERSION.SDK_INT;
      Log.d("MP3Downloader", "V: " + version );
  
      if( version &gt;= 8 ) {
          mRecorder.setAudioEncodingBitRate(16);
          mRecorder.setAudioSamplingRate(44100);
          mRecorder.setAudioChannels(2);
      }
  
      mRecorder.prepare();
      mRecorder.start();
  } catch (Exception e) {
      Log.e("MP3Downloader", "MediaRecorder Failed: " + e.getMessage() );
  }
  </code></pre>
  
  <p>I get error Start Failed: -2147483648 on version 2.3.3 only. I have not found this problem addressed anywhere else.</p>
  
  <p>I also tried:</p>
  
  <pre><code>try {
  
      MediaRecorder mRecorder = new MediaRecorder();
      mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
      mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
      mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  
      FileOutputStream fos = new FileOutputStream( "r_" + FileName);
  
      mRecorder.setOutputFile( fos.getFD() );
  
  
  
      int version = android.os.Build.VERSION.SDK_INT;
      Log.d("MP3Downloader", "V: " + version );
  
      if( version &gt;= 8 ) {
          mRecorder.setAudioEncodingBitRate(16);
          mRecorder.setAudioSamplingRate(44100);
          mRecorder.setAudioChannels(1);
      }
  
      mRecorder.prepare();
      mRecorder.start();
  } catch (Exception e) {
      Log.e("MP3Downloader", "MediaRecorder Failed: " + e.getMessage() );
  }
  </code></pre>
  
  <p>But, I get exception: "(Read-only file system)"</p>
  
  <p>I have permissions:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  </code></pre>