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.
Related Contents:
- How to send an object from one Android Activity to another using Intents?
- Sending an Intent to browser to open specific URL [duplicate]
- Android: Go back to previous activity
- Get/pick an image from Android’s built-in Gallery app programmatically
- How do I get the dialer to open with phone number displayed?
- Android Gallery on Android 4.4 (KitKat) returns different URI for Intent.ACTION_GET_CONTENT
- Android: Share plain text using intent (to all messaging apps)
- How to detect incoming calls, in an Android device?
- difference and when to use getApplication(), getApplicationContext(), getBaseContext() and someClass.this
- What’s “requestCode” used for on PendingIntent?
- How to start an Intent by passing some parameters to it?
- How do I show a marker in Maps launched by geo URI Intent?
- Android, Detect when other apps are launched
- How to perform a fade animation on Activity transition?
- How to bring an activity to foreground (top of stack)?
- Advantages of using Bundle instead of direct Intent putExtra() in Android
- Send a SMS via intent
- Passing android Bitmap Data within activity using Intent in Android
- android pending intent notification problem
- Deep-linking intent does not work
- Sending intent to BroadcastReceiver from adb
- Android: Start Activity from preferences.xml
- android – How to get view from context?
- What are the possible intent types for intent.setType(type)?
- Check if extras are set or not
- Removing extras from passed-in Intent
- open google maps through intent for specific location in android
- Single intent to let user take picture OR pick image from gallery in Android
- Determine addAction click for Android notifications
- getView returning null when fragment has been created from an activity
- Android Intent for Twitter application
- java.lang.RuntimeException: Handler (android.os.Handler) sending message to a Handler on a dead thread
- Getting an image from Gallery on from the Picasa//Google + synced folders doesn’t work
- Android Notification PendingIntent Extras null
- Is there a broadcast action for volume changes?
- Android getParcelableExtra deprecated
- How to share text to WhatsApp from my app?
- Detect if an outgoing call has been answered
- TaskStackBuilder transition animation
- The specified child already has a parent. You must call removeView() on the child’s parent first
- Using a broadcast intent/broadcast receiver to send messages from a service to an activity
- How should I forward Intent parameters through chains of Activities?
- No Activity found to handle Intent
- How to handle the click event in Listview in android?
- Choosing photo using new Google Photos app is broken
- Android: How to share image with text on facebook via intent?
- Intent.migrateExtraStreamToClipData() on a null object reference
- How can I do factory reset using adb in android? [closed]
- Starting Android service already running?
- Open online pdf file through android intent?