Code example for MediaRecorder

Methods: getMaxAmplitude

0
        intent.putExtra(ACTION_NAME, ACTION_STOP_RECORDING);
        context.startService(intent);
    } 
 
    public static int getMaxAmplitude() { 
        return mRecorder == null ? 0 : mRecorder.getMaxAmplitude();
    } 
 
    @Override 
    public void onError(MediaRecorder mr, int what, int extra) {
        sendErrorBroadcast(Recorder.INTERNAL_ERROR); 
        localStopRecording(); 
    } 
}