开发者

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

开发者 https://www.devze.com 2023-01-29 20:39 出处:网络
Is there any way to get programmatically the user selection after startActivityForResult(Intent.createChooser(fileIntent, \"Open file using...\"), APP_PICKED);

Is there any way to get programmatically the user selection after

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

or

startActivity(Intent.cre开发者_如何转开发ateChooser(fileIntent, "Open file using..."));

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

Thanks!


No, you cannot find out what the user chose.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消