Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Tutorial [Java] Simple Android Splash

iWeigel
Jan
112
134
Credits
1,578
Staff member
Administrator
Java:
// SplashActivity.java


public class SplashActivity extends Activity
{
    Handler handler;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);

        handler = new Handler();
        handler.postDelayed(new Runnable(){
                @Override
                public void run(){
                    Intent intent = new Intent(SplashActivity.this,MainActivity.class);
                    startActivity(intent);
                    finish();
                }
            },300);
    }
}
 

POPULAR THIS MONTH

Online Statistics

Members online
0
Guests online
76
Total visitors
76
Top