Skip to content

Instantly share code, notes, and snippets.

@akshaymukadam
Created August 18, 2019 08:44
Show Gist options
  • Save akshaymukadam/4ab8c42acc717544d798d6a517eb4aa3 to your computer and use it in GitHub Desktop.
Save akshaymukadam/4ab8c42acc717544d798d6a517eb4aa3 to your computer and use it in GitHub Desktop.
Launch Activity
fun launch$POSTFIX$(context: Context, $PARAM1$: $DATATYPE1$, $PARAM2$: $DATATYPE2$) {
Intent(context, $TARGETINTENT$::class.java)
intent.`package` = context.packageName
intent.putExtra($KEY1$, $PARAM1$)
intent.putExtra($KEY2$, $PARAM2$)
context.startActivity(intent)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment