How can I get the result of the intent of Share?

I use the following code to share:

Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_text)); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); sendIntent.setType("image/png"); startActivityForResult(Intent.createChooser(sendIntent,getResources().getString(R.string.share_via)), REQUEST_SHARE_RESULT); 
  • I want a sharing result. How can I do this?
  • How can I get receiver receiver specifications Share intent?
+6
source share
2 answers

in your case, link to this link to get a joint intention. Get the general mood

0
source

In action, you begin your intention with you to overwrite onActivityResult

  @Override protected void onActivityResult(int requestCode, int resultCode, Intent i) { ... } 
0
source

Source: https://habr.com/ru/post/969860/


All Articles