Skip to content

Instantly share code, notes, and snippets.

@aasumitro
Created January 25, 2018 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aasumitro/97ea5595fc01be1a87307c2fa223cd23 to your computer and use it in GitHub Desktop.
Save aasumitro/97ea5595fc01be1a87307c2fa223cd23 to your computer and use it in GitHub Desktop.
Splash Screen With ReactiveX
fun startTask() {
Observable.interval(3, TimeUnit.SECONDS)
.take(1)
.observeOn(AndroidSchedulers.mainThread())
.observeOn(Schedulers.newThread())
.subscribe { onNextActivity() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment