Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.asusx441n.examplelistviewdinamis;
- import android.app.Activity;
- import android.content.Intent;
- import android.support.v7.app.AppCompatActivity;
- import android.os.Bundle;
- public class SplashScreen extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_splash_screen);
- Thread thread = new Thread(){
- public void run() {
- try {
- sleep(3000);
- }catch (InterruptedException e){
- e.printStackTrace();
- }finally {
- startActivity(new Intent(SplashScreen.this, MainActivity.class));
- SplashScreen.this.finish();
- }
- }
- };
- thread.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement