new Handler(new Handler.Callback() {
@Override
public boolean handleMessage(Message msg) {
Intent intent = new Intent(MainActivity.this, Main2Activity.class);
startActivity(intent);
finish();
return false;
}
}).sendEmptyMessageDelayed(0,5000);
@Override
public boolean handleMessage(Message msg) {
Intent intent = new Intent(MainActivity.this, Main2Activity.class);
startActivity(intent);
finish();
return false;
}
}).sendEmptyMessageDelayed(0,5000);