Created
August 18, 2019 08:44
-
-
Save akshaymukadam/4ab8c42acc717544d798d6a517eb4aa3 to your computer and use it in GitHub Desktop.
Launch Activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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