75.6 Performing the Activity Initialization
The next step is to modify the activity to perform a number of initialization tasks. Remaining within the MainActivity.java file, modify the code as follows:
package com.ebookfrenzy.audioapp;
import java.io.IOException;
.
.
import android.media.MediaRecorder;
import android.os.Environment;
import android.widget.Button;
import android.view.View;
import android.media.MediaPlayer;
public class MainActivity extends AppCompatActivity {
private static MediaRecorder mediaRecorder;
private static MediaPlayer mediaPlayer;
private static String audioFilePath;
private Button stopButton;
private Button playButton;
private Button recordButton;
private...