title: Android Studio how do I check email address and password before starting a new activity
body: <p>Making a prototype app that requires an email address &amp; password
  I am quite new to java, I have tried the following method but the new activity does not open. If anyone has any helpful hints/tips it would be appreciated :)</p>
  
  <blockquote>
  <pre><code>public class LogonScreen extends ActionBarActivity {
  private Button SignInButton;
  private EditText Emailbox,Passwordbox;
  private CheckBox RememberMe;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_logon_screen);
      SignInButton = (Button) findViewById(R.id.SignInButton);
      Emailbox = (EditText) findViewById(R.id.EmailBox);
      Passwordbox = (EditText) findViewById(R.id.PasswordBox);
      RememberMe = (CheckBox) findViewById(R.id.RememberMeBox);
  }
  </code></pre>
  </blockquote>
  
  <pre><code>public void SignInButtonOnClick(View View){
      if(((Emailbox.getText().toString()).equals(R.string.EmailAd))&amp;&amp;((Passwordbox.getText().toString()).equals(R.string.password))){
          Intent i = new Intent(this, MenuPage.class);
          startActivity(i);
      }
  }
  </code></pre>