Skip to content

Instantly share code, notes, and snippets.

@PiotrPrus
Created March 13, 2019 12:57
Show Gist options
  • Save PiotrPrus/ea0be24461da5e11c5ecf076152ea60d to your computer and use it in GitHub Desktop.
Save PiotrPrus/ea0be24461da5e11c5ecf076152ea60d to your computer and use it in GitHub Desktop.
Function that starts first parameterized activity
private fun startFirstActivity() {
ParameterizedActivity.start(this, Params.create(
R.drawable.ic_success,
"Success",
"You finished registration process!",
"Cancel",
"OK",
{ context -> goBack(context) },
{ context -> Toast.makeText(context, "This is great success)", Toast.LENGTH_SHORT).show() }
))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment