I am making a simple audio recording application, I want the all audio file to have the same duration that's why I followed this article using post delayed handler to make stopRecording automatically active after 3000 milisecond. Here is my current code to start recording: 
@Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.btnStart: {
                    AppLog.logString("Start Recording");
                    startRecording();
                    new Handler().postDelayed(new Runnable() {
                        @Override
                        public void run() {
                            stopRecording();
                            enableButtons(false);
                            AppLog.logString("Stop Recording");
                            Toast.makeText(MainActivity.this, "File name: " + getFilename(),
                                    Toast.LENGTH_SHORT).show();
                        }
                    }, 3000);
                    break;
                }
            }
        }
all audio files are stored in internal memory, this is a picture for the all audio files that I recorded: 
my question is: are all the audio files (sampletest1.wav - sampletest6.wav) have a same duration? even though the size of the audio file is different? and why did this happen?