Code example for AudioRecord

Methods: getRecordingStategetStatereleasestop

0
	@Override 
	public void releaseSensor() { 
		taskCompleted = true;
		recording = false;
		 
		if(audio != null && audio.getState() 
				== AudioRecord.STATE_INITIALIZED){
			 
			if(audio.getRecordingState() 
					== AudioRecord.RECORDSTATE_RECORDING){
				audio.stop();
			} 
			 
			audio.release();
			audio = null;
		}  
	} 
 
	 
	/** 
Stop searching for code, let great code find you!  Add Codota to your java IDE