title: Black screen issue while calling another activity
body: <p>In my main activity i have  5 image views.By clicking each image it should navigate the activity to another.But my problem is while clicking an image it is showing the same activity once and then black screen for sometime and then only it is showing the second activity. I googled this but i don't know how to rectify this..
  so far i have tried</p>
  
  <pre><code>private View.OnClickListener onClickListener = new View.OnClickListener()
        {
          public void onClick(View View)
          {
           {    
    Intent intent = new Intent(main.this, activity1.class);
          //intent.setFlag(Intent.FLAG_ACTIVITY_NO_ANIMATION);
               //   intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                               overridePendingTransition (0, 0);
                  startActivity(intent);
  
               /* Intent i = new Intent(main.this, activity1.class);
              startActivity(i);   */
                // startActivity(new Intent(main.this, activity1.class)));
            }
  </code></pre>
  
  <p>but nothing worked for me.. help me in resolving this..Thanks in advance..</p>