Skip to content

Instantly share code, notes, and snippets.

@nikit19
Created February 12, 2022 11:34
Show Gist options
  • Save nikit19/69660d3523f2d62e4e7746299a01d451 to your computer and use it in GitHub Desktop.
Save nikit19/69660d3523f2d62e4e7746299a01d451 to your computer and use it in GitHub Desktop.
val mediaSelectionLimit = 2
val intent = Intent(MediaStore.ACTION_PICK_IMAGES)
intent.putExtra(MediaStore.EXTRA_PICK_IMAGES_MAX, mediaSelectionLimit)
startActivityForResult(intent, REQUEST_CODE_SINGLE_SELECT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment