21 lines
653 B
Kotlin
21 lines
653 B
Kotlin
![]() |
package com.vanced.manager
|
||
|
|
||
|
import androidx.appcompat.app.AppCompatActivity
|
||
|
import android.os.Bundle
|
||
|
import android.os.Handler
|
||
|
import android.os.PersistableBundle
|
||
|
import android.content.Intent
|
||
|
|
||
|
class SplashScreenActivity : AppCompatActivity() {
|
||
|
private val SPLASH_TIME_OUT:Long=3000
|
||
|
override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
|
||
|
super.onCreate(savedInstanceState, persistentState)
|
||
|
setContentView(R.layout.activity_splash_screen)
|
||
|
|
||
|
Handler().postDelayed({
|
||
|
startActivity(Intent(this, MainActivity::class.java))
|
||
|
finish()
|
||
|
}, SPLASH_TIME_OUT)
|
||
|
}
|
||
|
}
|