title: Splash screen with horizontal progressBar with using coroutines
body: <p>I am trying to create splash screen with progressBar. I want create it with using coroutines. Here is my code:</p>
  <pre><code> override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.splash_screen)
          progressBarLoading = findViewById(R.id.loadingProgress)
          lifecycleScope.launch {
              delay(1000)
              if (progressBarStatus &lt; 100) {
                  progressBarLoading?.setProgress(progressBarStatus)
                  progressBarStatus = progressBarStatus + 30
  
              } else {
                  var intent = Intent(this@SplashActivity, MainActivity::class.java)
                  startActivity(intent)
              }
          }
      }
  </code></pre>
  <p>but when splash screen is showing , progress Bar doesn't move and absent switching to the second screen. I can't understand what is wrong.</p>