How to get the user selection from startActivityForResult(Intent.createChooser(fileIntent, "Open file using..."), APP_PICKED);?
Asked Answered
C

1

6

Is there any way to get programmatically the user selection after

startActivityForResult(Intent.createChooser(fileIntent, "Open file using..."), APP_PICKED);

or

startActivity(Intent.createChooser(fileIntent, "Open file using..."));

I do not want to start the selected application - I only want to know which one is it?

Thanks!

Cryoscopy answered 11/12, 2010 at 13:48 Comment(0)
S
12

No, you cannot find out what the user chose.

You can, however, use PackageManager and queryIntentActivities() to make your own chooser.

Slowpoke answered 11/12, 2010 at 15:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.