Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Created December 14, 2021 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5AbhishekSaxena/48eca5c2c2c697983bc5d9f1cd965a4c to your computer and use it in GitHub Desktop.
Save 5AbhishekSaxena/48eca5c2c2c697983bc5d9f1cd965a4c to your computer and use it in GitHub Desktop.
Utility function to start activity
fun startActivity(context: Context, intent: Intent, chooserTitle: String) {
val intentWithChooser = Intent.createChooser(intent, chooserTitle)
context.startActivity(intentWithChooser)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment