I need showing a layout per some seconds, and here my code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.intro);
SystemClock.sleep(2000);
finish();
}
but the layout is visible only after the end method, in others words, it is showing after the two seconds and not before the two seconds.
I need showing the layout per 2 second and after close it.
I managed to do so if someone have the same doubt one day I hope this helps.
public class Main extends Activity {
}