I was trying to create an intent chooser in order to store the user's selected intent for later use, but nothing seems to work.
Intent.CreateChooser
only seems to work when actually launching the intent, and even then it doesn't return the selected intent back to the calling activity but just launches it.
The only other solution I could come up with, which seems tedious to me, is to generate a list of activities from PackageManager and then create an interface for the user to select the activity from the results:
PackageManager manager = getPackageManager();
List<ResolveInfo> info = manager.queryIntentActivities(myIntent,PackageManager.GET_ACTIVITIES);
It technically should work, but since "CreateChooser" already exists, I find it hard to believe that there isn't a way to use it (or a similar system method) to display an activity chooser and parse the result.
Any insight would be appreciated.