I made a sort of index activity with my personal logo. I want that after 5 seconds change activity. So I prepared 2 layout, I run the launcher. In launcher activity I set:
Intent intent = new Intent(Home.this, IndexActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
startActivity(intent);
finish();
The problem is that the activity stay blocked in a white activity and after 5 seconds change activity.
Did I make a mistake?
How can I create a fade animation? And how can I run it? Thanks