AudioRecord doesn't work for Motorola Milestone
<p>I'm having this problem only on Motorola Milestone. Code:</p>

<pre><code>// init recorder
recordInstance = new AudioRecord(MediaRecorder.AudioSource.MIC,
    8000, AudioFormat.CHANNEL_CONFIGURATION_MONO,
    AudioFormat.ENCODING_PCM_16BIT, 8000);

recordInstance.startRecording();

//more code here

recordInstance.stop();
</code></pre>

<p>The errorinformation I have (can't find more for the moment since I don't have a milestone myself for debugging):</p>

<pre><code>Uncaught handler: thread main exiting due to uncaught exception
java.lang.IllegalStateException: stop() called on an uninitialized AudioRecord.
at android.media.AudioRecord.stop(AudioRecord.java:51 6)
</code></pre>

<p>Apparantly I'm not the only one with this problem. Some very similar threads I found (without solution):</p>

<p><a href="http://groups.google.com/group/android-developers/browse_thread/thread/6dd24aeb484b2e40" rel="nofollow">http://groups.google.com/group/android-developers/browse_thread/thread/6dd24aeb484b2e40</a>
<a href="http://androidcommunity.com/forums/f2/problem-using-audiorecord-in-motorola-milestone-30935/" rel="nofollow">http://androidcommunity.com/forums/f2/problem-using-audiorecord-in-motorola-milestone-30935/</a>
<a href="http://community.developer.motorola.com/t5/Android-App-Development-for/Problem-using-AudioRecord-on-Milestone-device/m-p/3889" rel="nofollow">http://community.developer.motorola.com/t5/Android-App-Development-for/Problem-using-AudioRecord-on-Milestone-device/m-p/3889</a>
<a href="http://www.fring.com/forums/showthread.php?t=16194" rel="nofollow">http://www.fring.com/forums/showthread.php?t=16194</a>
<a href="http://groups.google.com/group/android-developers/browse_thread/thread/63be273ba59c635e/1c4a010fd470d328" rel="nofollow">http://groups.google.com/group/android-developers/browse_thread/thread/63be273ba59c635e/1c4a010fd470d328</a></p>
