title: not getting the expected output of intent
body: <p>so basically i am using intent in this.so when i clicked on the splash page the main_activity page  should open.but after running the  code splash page opens ..but when i click on the textview blank page opens.even in the logcat sections there are no errors.</p>
  <p>this is my SplashActivity.class code</p>
  <pre><code>public class SplashActivity extends AppCompatActivity {
  
      protected void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setContentView(R.layout.splash);
  
          TextView textView = (TextView) findViewById(R.id.textView);
          textView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Intent i = new Intent(SplashActivity.this,MainActivity.class);
                  startActivity(i);
  
              }
          });
  
      }
  }
  </code></pre>
  <p>this is my main_activity.xml code</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;@drawable/ic_launcher_background&quot;
      tools:context=&quot;.MainActivity&quot;&gt;
  
  
      &lt;TextView
          android:id=&quot;@+id/plain_text_input&quot;
          android:layout_width=&quot;260dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_alignParentLeft=&quot;true&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginStart=&quot;8dp&quot;
          android:layout_marginLeft=&quot;8dp&quot;
          android:layout_marginEnd=&quot;142dp&quot;
          android:layout_marginRight=&quot;142dp&quot;
          android:layout_marginBottom=&quot;439dp&quot;
          android:drawableLeft=&quot;@drawable/ic_action_username&quot;
          android:fontFamily=&quot;sans-serif&quot;
          android:paddingLeft=&quot;15dp&quot;
          android:paddingRight=&quot;15dp&quot;
          android:text=&quot;USERNAME&quot;
          android:textColor=&quot;@color/WhiteSmoke&quot;
          android:textSize=&quot;20dp&quot; /&gt;
  
      &lt;EditText
          android:id=&quot;@+id/txtusername&quot;
          android:layout_width=&quot;351dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginEnd=&quot;51dp&quot;
          android:layout_marginBottom=&quot;381dp&quot;
          android:ems=&quot;10&quot;
          android:inputType=&quot;textEmailAddress&quot;
          android:textSize=&quot;20dp&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/editTextTextPersonName&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_alignParentLeft=&quot;true&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginStart=&quot;23dp&quot;
          android:layout_marginLeft=&quot;23dp&quot;
          android:layout_marginEnd=&quot;78dp&quot;
          android:layout_marginRight=&quot;78dp&quot;
          android:layout_marginBottom=&quot;325dp&quot;
          android:drawableLeft=&quot;@drawable/ic_action_password&quot;
          android:fontFamily=&quot;sans-serif&quot;
          android:text=&quot;PASSWORD&quot;
          android:textColor=&quot;@color/WhiteSmoke&quot;
          android:textSize=&quot;20dp&quot; /&gt;
  
      &lt;EditText
          android:layout_width=&quot;353dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginEnd=&quot;43dp&quot;
          android:layout_marginBottom=&quot;260dp&quot; /&gt;
  
      &lt;androidx.cardview.widget.CardView
          android:layout_width=&quot;348dp&quot;
          android:layout_height=&quot;56dp&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginStart=&quot;20dp&quot;
          android:layout_marginEnd=&quot;20dp&quot;
          android:layout_marginRight=&quot;28dp&quot;
          android:layout_marginBottom=&quot;170dp&quot;
          app:cardBackgroundColor=&quot;@color/DeepPink&quot;
          app:cardCornerRadius=&quot;30dp&quot;
          app:cardElevation=&quot;10dp&quot;&gt;
  
          &lt;RelativeLayout
              android:layout_width=&quot;373dp&quot;
              android:layout_height=&quot;73dp&quot;
              android:layout_marginEnd=&quot;50dp&quot;
              android:layout_marginBottom=&quot;100dp&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/textView2&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;44dp&quot;
                  android:layout_alignParentEnd=&quot;true&quot;
                  android:layout_alignParentBottom=&quot;true&quot;
                  android:layout_marginEnd=&quot;157dp&quot;
                  android:layout_marginBottom=&quot;18dp&quot;
                  android:fontFamily=&quot;sans-serif&quot;
                  android:freezesText=&quot;true&quot;
                  android:text=&quot;LOGIN &quot;
                  android:textColor=&quot;@color/Black&quot;
                  android:textSize=&quot;25dp&quot; /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/androidx.cardview.widget.CardView&gt;
  
      &lt;Button
          android:id=&quot;@+id/textView3&quot;
          android:layout_width=&quot;128dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginEnd=&quot;149dp&quot;
          android:layout_marginRight=&quot;149dp&quot;
          android:layout_marginBottom=&quot;98dp&quot;
          android:fontFamily=&quot;sans-serif&quot;
          android:text=&quot;SIGN IN&quot;
          android:textAllCaps=&quot;true&quot;
          android:textColor=&quot;@color/Black&quot;
          android:textSize=&quot;20dp&quot; /&gt;
  
      &lt;Button
          android:id=&quot;@+id/textView9&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginEnd=&quot;101dp&quot;
          android:layout_marginRight=&quot;101dp&quot;
          android:layout_marginBottom=&quot;39dp&quot;
          android:fontFamily=&quot;sans-serif&quot;
          android:text=&quot;FORGOT PASSWORD!&quot;
          android:textAllCaps=&quot;true&quot;
          android:textColor=&quot;@color/Black&quot;
          android:textSize=&quot;20dp&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imageView&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;106dp&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginEnd=&quot;108dp&quot;
          android:layout_marginBottom=&quot;495dp&quot;
          app:srcCompat=&quot;@drawable/ticket&quot; /&gt;
  
      &lt;CheckBox
          android:id=&quot;@+id/checkBox&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;44dp&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_marginEnd=&quot;17dp&quot;
          android:layout_marginBottom=&quot;598dp&quot;
          android:text=&quot;CheckBox&quot;
          android:textSize=&quot;20dp&quot;
          tools:text=&quot;ADMIN&quot; /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>this is my splash.xml code</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;RelativeLayout tools:context=&quot;.SplashActivity&quot;
      android:background=&quot;@drawable/ic_launcher_background&quot;
      android:layout_height=&quot;match_parent&quot;
      android:layout_width=&quot;match_parent&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  
      &lt;ImageView android:layout_height=&quot;173dp&quot;
          android:layout_width=&quot;wrap_content&quot; app:srcCompat=&quot;@drawable/ticket&quot;
          android:scaleType=&quot;fitCenter&quot; android:maxHeight=&quot;42dp&quot; android:maxWidth=&quot;42dp&quot;
          android:layout_marginBottom=&quot;399dp&quot; android:layout_marginEnd=&quot;98dp&quot;
          android:layout_alignParentBottom=&quot;true&quot; android:layout_alignParentEnd=&quot;true&quot;
          android:id=&quot;@+id/imageView2&quot;/&gt;
  
      &lt;TextView android:layout_height=&quot;65dp&quot;
          android:layout_width=&quot;349dp&quot; android:layout_marginBottom=&quot;231dp&quot;
          android:layout_marginEnd=&quot;20dp&quot; android:layout_alignParentBottom=&quot;true&quot;
          android:layout_alignParentEnd=&quot;true&quot; android:id=&quot;@+id/textView&quot; android:textStyle=&quot;bold&quot;
          android:textSize=&quot;30dp&quot; android:textColor=&quot;@color/WhiteSmoke&quot; android:textAllCaps=&quot;true&quot;
          android:text=&quot;Movie Ticket Booking&quot; android:fontFamily=&quot;sans-serif&quot;/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>this is my Mainactivity.java code</p>
  <pre><code>import android.app.Activity;
  
  public class MainActivity extends Activity {
  
  }
  </code></pre>