Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mch.ktm.kerjaanku.view
- import android.content.Intent
- import android.os.Bundle
- import android.os.Handler
- import android.os.Looper
- import androidx.appcompat.app.AppCompatActivity
- import com.mch.ktm.kerjaanku.databinding.ActivitySplashBinding
- import com.mch.ktm.kerjaanku.main.MainActivity
- class ActivitySplash : AppCompatActivity() {
- private lateinit var binding: ActivitySplashBinding
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- binding = ActivitySplashBinding.inflate(layoutInflater)
- setContentView(binding.root)
- Handler(Looper.getMainLooper()).postDelayed(
- {
- val intent = Intent(this, MainActivity::class.java)
- //Toast.makeText(this, "LOOPER", Toast.LENGTH_SHORT).show()
- startActivity(intent)
- finish()
- }, 2000
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement