Code example for AudioRecord

Methods: readstartRecordingstop

0
    	dump();  
    }  
 
    public void acquire(){  
    	try {  
    		audioRecord.startRecording(); 
    		mSamplesRead = audioRecord.read(buffer, 0, buffersizebytes); 
    		audioRecord.stop(); 
  	  } catch (Throwable t) { 
  		  Log.e("AudioRecord", "Recording Failed"); 
  	  }  
    }  
 
    public void dump(){  
   	 TextView tv = new TextView(this); 
   	 setContentView(tv); 
   	 tv.setTextColor(Color.WHITE); 
   	 tv.setText("buffersizebytes "+buffersizebytes+"\n"); 
   	 //for(int i = 0; i < 256; i++){  
   	//	 tv.append(" "+buffer[i]);  
   	 //}