class PauseResumeAudioRecorder {

    public void startRecording(){
        if (currentAudioState.get() == PREPARED_STATE) {
            currentAudioRecordingThread = new AudioRecorderThread(audioFile.replace(".wav",".temp"), MediaRecorder.AudioSource.MIC, sampleRateInHertz,channelConfig,audioEncoding,maxFileSizeInBytes);
            currentAudioState.set(RECORDING_STATE);
            currentAudioRecordingThread.start();
            onTimeCompletedTimer=new Timer(true);
            onTimeCompletionTimerTask=new MaxTimeTimerTask();
            onTimeCompletedTimer.schedule(onTimeCompletionTimerTask,maxTimeInMillis);
            remainingMaxTimeInMillis=maxTimeInMillis;
            recordingStartTimeMillis=System.currentTimeMillis();
        }
        else{
            Log.w(TAG,"Audio recorder is not in prepared state. Ignoring call.");
        }
    }

    public  PauseResumeAudioRecorder();

}