0

I want share something (plain text) via all sharing app in 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.

4

1 回答 1

0

but I want delivery message that my app detect sharing done.

That is not supported by ACTION_SEND or ACTION_SENDTO. You do not find out if the user shares the content or how the user shares the content.

于 2015-03-05T12:20:16.337 回答