Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created March 28, 2018 19:41
Show Gist options
  • Save adrianhall/852cbca59292188110db5c12774fac10 to your computer and use it in GitHub Desktop.
Save adrianhall/852cbca59292188110db5c12774fac10 to your computer and use it in GitHub Desktop.
onResume() method for a SplashActivity
override fun onResume() {
super.onResume()
thread(start = true) {
// Initialize the AWS Provider
AWSProvider.initialize(this@SplashActivity)
// Any other library initializations go here
// Transition to the next activity
startActivity(Intent(this@SplashActivity, ItemListActivity::class.java))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment