Automatic start of a new activity in android

I am creating an android application. I have a logo screen(Activity) and then my home screen(another activity). I want that when I start my application my logo screen should come and then automatically after 2 sec my home screen should appear. Can anyone please suggest to me what I should do?


Please use this..

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class Logo extends Activity {
protected boolean _active = true;
protected int _splashTime = 2000;

/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {

    Handler handler = new Handler();
    handler.postDelayed(new Runnable() {
        public void run() {
            Intent i3 = new Intent(Logo.this, Home.class);
    }, _splashTime);

Leave a Reply

Your email address will not be published. Required fields are marked *