Splash_screen
Splash_screen
public class splash extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new Thread(){
public void run(){
try{
sleep(3000);
Intent i=new Intent(splash.this,login.class);
startActivity(i);
finish();
}
catch (InterruptedException e){
e.printStackTrace();
}
}
}.start();
}
}
public class splash extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new Thread(){
public void run(){
try{
sleep(3000);
Intent i=new Intent(splash.this,login.class);
startActivity(i);
finish();
}
catch (InterruptedException e){
e.printStackTrace();
}
}
}.start();
}
}
Comments
Post a Comment