【问题标题】:how can I know sharing intent done?我怎么知道共享意图已经完成?
【发布时间】:2015-03-05 11:30:39
【问题描述】:

我想通过 android 中的所有共享应用程序共享一些东西(纯文本)。 这是我的代码

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"));

但我希望我的应用检测到共享已完成的传递消息。

【问题讨论】:

    标签: java android android-intent android-sharing


    【解决方案1】:

    但我希望我的应用检测到共享已完成的传递消息。

    ACTION_SENDACTION_SENDTO 不支持此功能。您不知道用户是否共享内容或用户如何共享内容。

    【讨论】:

    • 我可以通过其他功能找到这个吗?
    • @user3001854:不。您将共享委托给第三方应用程序。您没有编写第三方应用程序。第三方应用程序的作者无需告诉您任何事情。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-28
    • 2012-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-31
    相关资源
    最近更新 更多