Intent.createChooser: How we can check sharing image intent count?

后端 未结 2 2059
一个人的身影
一个人的身影 2021-01-24 02:02

1) How we can check which app was selected by an android sharing intent?And how can we know the image shared successfully or not? Is there a way to confirm if a Share intent in

相关标签:
2条回答
  • 2021-01-24 02:04

    How we can check which app was selected by an android sharing intent?

    On Android 5.1 and higher, you can find out the chosen activity by using the three-parameter version of createChooser(). Otherwise, you cannot determine this, unless you create your own chooser.

    And how can we know the image shared successfully or not?

    You can't. There is no universal definition of "successfully", and what happens with the shared content is up to the user and the app that the user chose, not you.

    0 讨论(0)
  • 2021-01-24 02:20

    In case of default Android intent sharing we can not get the acknowledgement whether the item is shared or not, the Intent sharing dialog is managed by Android OS itself and sharing in particular app is managed by that app so it is not in our app's control.

    If we are sharing images from our application then we can defiantly get the count of selected images to share.

    0 讨论(0)
提交回复
热议问题