public class SplasScreen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// getSupportActionBar().hide();
Runnable r=new Runnable() {
@Override
public void run() {
try {
sleep(2000);
startActivity(new Intent(getApplicationContext(),LoginScreen.class));
SplasScreen.this.finish();
}
catch (Exception e)
{
e.printStackTrace();
}
}
};
Thread t=new Thread(r);
t.start();
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// getSupportActionBar().hide();
Runnable r=new Runnable() {
@Override
public void run() {
try {
sleep(2000);
startActivity(new Intent(getApplicationContext(),LoginScreen.class));
SplasScreen.this.finish();
}
catch (Exception e)
{
e.printStackTrace();
}
}
};
Thread t=new Thread(r);
t.start();
}
}
No comments:
Post a Comment