Hello guys, I am trying to run a splash screen and I am getting this error code. The code is exactly the same as the one from the tutorial I was watching from YouTube. I am a beginner
Completable.timer( delay: 5, TimeUnit.SECONDS,
Completable.timer( delay: 5, TimeUnit.SECONDS,
AndroidSchedulers.mainThread())
.subscribe((Action) () -> {
Toast.makeText( context: SplashScreenActivity.this, text:“Splash screen done”, Toast.LENGTH_SHORT).show();