-
Notifications
You must be signed in to change notification settings - Fork 1
/
Screen1.java
39 lines (35 loc) · 1.22 KB
/
Screen1.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
package com.example.scoreit;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
public class Screen1 extends AppCompatActivity {
Intent i;
@Override
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
getSupportActionBar().hide();
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_screen1);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
i= new Intent(Screen1.this, MainActivity.class);
Thread t1 = new Thread() {
public void run() {
try {
sleep(4000);
} catch (Exception e) {
e.printStackTrace();
} finally {
startActivity(i);
finish();
}
}
};
t1.start();
}
}