-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplash.java
42 lines (39 loc) · 1014 Bytes
/
Splash.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package rkapoors.listpractice;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
* Created by KAPOOR's on 11-06-2016.
*/
public class Splash extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
Thread time=new Thread()
{
public void run()
{
try{
sleep(3500);
}
catch(InterruptedException e)
{
e.printStackTrace();
}
finally{
Intent intent=new Intent(Splash.this,MainActivity.class);
startActivity(intent);
}
}
};
time.start();
}
@Override
protected void onPause()
{
super.onPause();
finish();
}
}