title: Moving from "Blank Activity" to "Navigation Drawer Activity"
body: <p><strong>Statement:</strong></p>
  
  <p>I am developing an application using Android Studio.
  I have Login Page as my main activity and I want that when a user successfully login. He then move to a Navigation Drawer.
  For that purpose I have a login button on my login page. And under a login Button i am using the following code:-</p>
  
  <pre><code>public void Login_Attempt() {
      Button login_btn;
      email = (EditText) findViewById(R.id.email_id);
      pass = (EditText) findViewById(R.id.password_id);
      login_btn = (Button) findViewById(R.id.login_btn);
  
      login_btn.setOnClickListener(
              new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      if (email.getText().toString().equals("teacher") &amp;&amp;
                              pass.getText().toString().equals("teacher")) {
                          Toast.makeText(LoginActivity.this, " Successfully Login ", Toast.LENGTH_SHORT).show();
                          Intent teacher = new Intent(LoginActivity.this, Teacher.class);
                          startActivity(teacher);
                      } else {
                          Toast.makeText(LoginActivity.this, " Login Failed ", Toast.LENGTH_SHORT).show();
                          error.setVisibility(View.VISIBLE);
                      }
  
                  }
  
              }
      );
  
  }
  </code></pre>
  
  <p><strong>Problem:</strong>
  When I click on button while running my app. After Successful login Application Crashes.</p>
  
  <p>Please help me where am I doing wrong or else please refer me a tutorial where this kind of situation is handled. Any help will be appreciated.</p>
  
  <p><strong>LogCat Error:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/zFOUG.png" alt="enter image description here"></p>
  
  <hr>
  
  <p><strong>Edited:</strong>
  Here is what I have found that Teacher Activity is Not Showing any layout.
  <img src="https://i.stack.imgur.com/8ZXs3.jpg" alt="enter image description here"></p>
  
  <p>If this is what the problem is Kindly let me know how to rectify it.</p>