java.lang.IllegalStateException at android.media.MediaRecorder.start(Native Method)
I want to make a voice recorder app but it crashes when i click the "Start Recording" button. I get an error saying java.lang.IllegalStateException at android.media.MediaRecorder.start(Native Method). Ive also attached the log. package com.example.sahil.chuckit; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.app.Activity; import android.media.MediaPlayer; import android.media.MediaRecorder; import android.os.Environment; import java.io.File; public class MainActivity extends Activity { private static Button submit; private static Button submit2