title: App will not connect to Firebase Storage- Will not open, No errors
body: <p>I was going through a tutorial to create a voice recorder which will then upload the recording to Firebase. I watched the tutorial many times and made sure the app is connected to Firebase; however, the app will not open right now most likely due to this issue. I'm pretty new to Java programming. Can someone please provide me with some guidance? Thank you</p>
  
  <pre><code>package bfb.ess.myapplicationbfb;
  
  import android.app.ProgressDialog;
  import android.media.MediaRecorder;
  import android.net.Uri;
  import android.os.Bundle;
  import android.os.Environment;
  import android.support.v7.app.AppCompatActivity;
  import android.util.Log;
  import android.view.MotionEvent;
  import android.view.View;
  import android.widget.Button;
  import android.widget.TextView;
  
  import com.google.android.gms.tasks.OnSuccessListener;
  
  import com.google.firebase.storage.FirebaseStorage;
  import com.google.firebase.storage.StorageReference;
  import com.google.firebase.storage.UploadTask;
  
  import java.io.File;
  import java.io.IOException;
  
  public class speakp extends AppCompatActivity {
  
      private Button mRecordBtn;
      private TextView mRecordlabel;
  
      private MediaRecorder mRecorder;
  
      private String mFileName = null;
  
      private static final String LOG_TAG = "Record_log";
  
      private StorageReference mStorage;
  
  
      private ProgressDialog mProgress;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.recordpage);
  
          mStorage = FirebaseStorage.getInstance().getReference();
  
          mRecordlabel = (TextView) findViewById(R.id.recordlabel);
          mRecordBtn =(Button) findViewById(R.id.recordBtn);
  
          mProgress = new ProgressDialog(this);
  
          mFileName = Environment.getExternalStorageDirectory().getAbsolutePath();
          mFileName +="/recorded_audio.3gp";
  
          mRecordBtn.setOnTouchListener(new View.OnTouchListener() {
              @Override
              public boolean onTouch(View view, MotionEvent motionEvent) {
  
                  if(motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
  
                      startRecording();
  
                      mRecordlabel.setText("Recording Started ...");
  
                  } else if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
  
                      stopRecording();
  
                      mRecordlabel.setText("Recording Stopped ...");
                  }
  
  
                  return false;
              }
          });
      }
  
      private void startRecording() {
          mRecorder = new MediaRecorder();
          mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
          mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
          mRecorder.setOutputFile(mFileName);
          mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  
          try {
              mRecorder.prepare();
          } catch (IOException e) {
              Log.e(LOG_TAG, "prepare() failed");
          }
  
          mRecorder.start();
      }
  
      private void stopRecording() {
          mRecorder.stop();
          mRecorder.release();
          mRecorder = null;
  
          uploadAudio();
      }
  
      private void uploadAudio() {
  
  
  
          mProgress.setMessage("Uploading Audio ...");
          mProgress.show();
  
          StorageReference filepath = mStorage.child("Audio").child("new_audio.3gp");
  
          Uri uri = Uri.fromFile(new File(mFileName));
  
          filepath.putFile(uri).addOnSuccessListener(new OnSuccessListener&lt;UploadTask.TaskSnapshot&gt;() {
              @Override
              public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
  
                  mProgress.dismiss();
  
                  mRecordlabel.setText("Uploading Finished");
  
              }
          });
  
      }
  }
  </code></pre>