[英]how can I know sharing intent done?
I want share something (plain text) via all sharing app in android. 我希望通过android中的所有共享应用程序分享一些东西(纯文本)。 and this is my code
这是我的代码
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = toast;
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "Share via"));
but I want delivery message that my app detect sharing done. 但我希望我的应用程序检测到共享完成的传递消息。
but I want delivery message that my app detect sharing done.
但我希望我的应用程序检测到共享完成的传递消息。
That is not supported by ACTION_SEND
or ACTION_SENDTO
. ACTION_SEND
或ACTION_SENDTO
不支持此功能。 You do not find out if the user shares the content or how the user shares the content. 您不会发现用户是否共享内容或用户如何共享内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.