Skip to content

Instantly share code, notes, and snippets.

@deepakkumardk
Last active June 14, 2019 11:53
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 deepakkumardk/200f6bc6370652912ed4ae8d4d1053cb to your computer and use it in GitHub Desktop.
Save deepakkumardk/200f6bc6370652912ed4ae8d4d1053cb to your computer and use it in GitHub Desktop.
Handle the incoming intent
val action = intent.action
val type = intent.type
if (Intent.ACTION_SEND == action && type != null) {
if (type.startsWith("image/")) {
handleSendImage(intent)
}
} else if (Intent.ACTION_SEND_MULTIPLE == action && type != null) {
if (type.startsWith("image/")) {
handleSendMultipleImages(intent)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment