title: how to jump from signup page to the next activity on the click of the signup button
body: <p>ok, so I made a signup page in my application that shows up when the app starts. I used if and else statement that if none of the fields are empty, then it shows "login successful" on the click of the sign-up button on the screen else it shows"Login unsuccessful". i want to add a code in the if portion that if none of the fields are empty, then it shows"login successful" on the click of the sign up button and proceeds to the next activity which is actually the real application supposed to be displayed after the sign up page else it shows "Login unsuccessful" but can't figure out how. and I'm a beginner in android programming too.</p>
  
  <pre><code> Button mShowdialog = (Button) findViewById(R.id.btnShowDialog);
  
      mShowdialog.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              AlertDialog.Builder mBuilder = new AlertDialog.Builder(MainActivity.this);
              View mView = getLayoutInflater().inflate(R.layout.dialog_login,null);
              final EditText mEmail = (EditText) mView.findViewById(R.id.edtEmail);
              final EditText mPassword = (EditText) mView.findViewById(R.id.edtPassword);
              Button mLogin = (Button) mView.findViewById(R.id.btnLogin);
              mLogin.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View view) {
                      if (!mEmail.getText().toString().isEmpty()
                              &amp;&amp; !mPassword.getText().toString().isEmpty()) {
  
                          Toast.makeText(MainActivity.this,
                                  R.string.Success_Login_msg,
                                  Toast.LENGTH_SHORT).show();
                      } else {
                          Toast.makeText(MainActivity.this,
                                  R.string.error_login_msg,
                                  Toast.LENGTH_SHORT).show();
                      }
                  }
              });
          }
      });
  </code></pre>