我的应用有一个“分享”按钮,可以启动一个 Intent 选择器。 是否可以知道选择器菜单是否被取消或其中一个选项被选中?
我尝试了 startActivityForResult
但 resultCode
始终为 0。
有什么想法吗?
最佳答案
Is it possible to know if the chooser menu was canceled or one of the options where selected?
不,对不起。为此,您需要实现自己的选择器。
关于android - 获取 Intent 选择器结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19139576/