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.Media
You have to take into consideration, that MediaRecorder as well as MediaPlayer has their state machines, which obligate you to do some action in specific sequence.
Here you tried to start recording withou preparing MediaRecorder. Call