Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
activity.setResult(Activity.RESULT_OK, Intent().apply { // this:intent
putExtra("response", true)
putExtra("message", "success")
putExtra("result", "ok")
})
activity.setResult(Activity.RESULT_OK, Intent().also { // it:intent
it.putExtra("response", true)
it.putExtra("message", "success")
it.putExtra("result", "ok")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment