On Android 5.1+, you can use the three-parameter edition of the createChooser()
method, where the last parameter is an IntentSender
that you can use to find out what was chosen.
Prior to Android 5.1, there is nothing in Android to let you know what the user chose.
More Related Contents:
- How to use putExtra() and getExtra() for string data
- Send Email Intent
- How do I get the currently displayed fragment?
- Sending message through WhatsApp
- Check INTENT internet connection
- How to bring an activity to foreground (top of stack)?
- How to pass ArrayList of Objects from one to another activity using Intent in android?
- Launch Skype from an App Programmatically & Pass Number – Android
- How to start an Intent by passing some parameters to it?
- Android Camera Intent Saving Image Landscape When Taken Portrait [duplicate]
- Intent – if activity is running, bring it to front, else start a new one (from notification)
- Unable to start Service Intent
- Listen to own application uninstall event on Android
- Android L (API 21) – java.lang.IllegalArgumentException: Service Intent must be explicit
- Start a fragment via Intent within a Fragment
- Trying to UNINSTALL_SHORTCUT but shortcut won’t go away
- what is the difference between sendStickyBroadcast and sendBroadcast in Android
- What is the meaning of android.intent.action.MAIN?
- Launching an Android Application from the Browser
- Android BroadCastReceiver for volume key up and down
- Upload an Image from camera or gallery in WebView
- Passing a List from one Activity to another
- How do I properly fire ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS intent?
- How to take pictures from the camera without preview when my app starts?
- Android: Event ACTION_POWER_CONNECTED is not sent to my BroadcastReceiver
- Kotlin Android start new Activity
- How to share text to WhatsApp from my app?
- Why ITelephony.aidl works?
- data in onActivityResult is null
- How to attach image from drawable to gmail?