You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							933 B
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							933 B
						
					
					
				| package com.example.tooth;
 | |
| 
 | |
| import androidx.appcompat.app.AppCompatActivity;
 | |
| 
 | |
| import android.content.Intent;
 | |
| import android.os.Bundle;
 | |
| import android.os.Handler;
 | |
| import android.view.WindowManager;
 | |
| 
 | |
| public class SplashActivity extends AppCompatActivity {
 | |
| 
 | |
|     @Override
 | |
|     protected void onCreate(Bundle savedInstanceState) {
 | |
|         super.onCreate(savedInstanceState);
 | |
|         setContentView(R.layout.activity_splash);
 | |
|         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
 | |
|                 WindowManager.LayoutParams.FLAG_FULLSCREEN);
 | |
|         new Handler().postDelayed(new Runnable() {
 | |
|             @Override
 | |
|             public void run() {
 | |
|                 Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);
 | |
|                 startActivity(mainIntent);
 | |
|                 finish();
 | |
|  /* overridePendingTransition(R.anim.mainfadein,
 | |
|  R.anim.splashfadeout);*/
 | |
|             }
 | |
|         }, 3000);
 | |
|     }
 | |
| }
 | |
| 
 |