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 ?