title: How to record audio on android wear
body: <p>There is some way to record audio on android wear? I used AudioRecord API and it crashes the application.</p>
  
  <p>Am I doing something wrong?</p>
  
  <pre><code>        short[] audioData = new short[minBufferSize];
  
          AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC,
                  11025,
                  AudioFormat.CHANNEL_CONFIGURATION_MONO,
                  AudioFormat.ENCODING_PCM_16BIT,
                  minBufferSize);
  
          audioRecord.startRecording();
  
          while(recording){
              int numberOfShort = audioRecord.read(audioData, 0, minBufferSize);
              for(int i = 0; i &lt; numberOfShort; i++){
                  dataOutputStream.writeShort(audioData[i]);
              }
          }
  
          audioRecord.stop();
  </code></pre>