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

后端 未结 2 2060
一个人的身影
一个人的身影 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.

提交回复
热议问题