public class Splash extends Activity {
private final int SPLASH_DISPLAY_LENGTH = 2000;//sces
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
ActionBar bar = getActionBar();
bar.hide();
Thread timer=new Thread()
{
public void run()
{
try{
sleep(SPLASH_DISPLAY_LENGTH);
}
catch(InterruptedException e)
{
e.printStackTrace();
}
finally{
Intent i=new Intent(Splash.this,SignIn.class);
startActivity(i);
finish();
}
}
};
timer.start();
}
}
private final int SPLASH_DISPLAY_LENGTH = 2000;//sces
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
ActionBar bar = getActionBar();
bar.hide();
Thread timer=new Thread()
{
public void run()
{
try{
sleep(SPLASH_DISPLAY_LENGTH);
}
catch(InterruptedException e)
{
e.printStackTrace();
}
finally{
Intent i=new Intent(Splash.this,SignIn.class);
startActivity(i);
finish();
}
}
};
timer.start();
}
}
Comments
Post a Comment