There is an activity, in which the main button is and there is an OnClickListener for it:

 CustomView login_skip = (CustomView) findViewById(R.id.login_skip); login_skip.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { startActivity(new Intent(FirstLaunchActivity.this, MainActivity.class)); finish(); } }); 

The fact is that this code is executed for 3-5 seconds and only then a new Activity opened.

What could be the problem of speed?

Should I use Fragment instead of Activity ?

1 answer 1

Try to remove the animation:

  overridePendingTransition(0, 0); 

before finish()