I was working on a project that record voice for 2 minutes if u holds the power button, on the first place I used MediaRecorder to record audio according to the android docs ht