1import androidx.appcompat.app.AppCompatActivity;
2import android.os.Bundle;
3import android.view.Window;
4import android.view.WindowManager;
5public class MainActivity extends AppCompatActivity {
6 @Override
7 protected void onCreate(Bundle savedInstanceState) {
8 super.onCreate(savedInstanceState);
9 requestWindowFeature(Window.FEATURE_NO_TITLE);
10 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
11 setContentView(R.layout.activity_main);
12 }
13}