Last active
June 14, 2019 11:53
-
-
Save deepakkumardk/200f6bc6370652912ed4ae8d4d1053cb to your computer and use it in GitHub Desktop.
Handle the incoming intent
This file contains 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
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