code: public void setShareIntent(Intent shareIntent) {
          ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
              mShareHistoryFileName);
          dataModel.setIntent(shareIntent);
      }
docs: Sets an intent with information about the share action. Here is a
  sample for constructing a share intent:
  <p>
  <pre>
  <code>
  Intent shareIntent = new Intent(Intent.ACTION_SEND);
  shareIntent.setType("image/*");
  Uri uri = Uri.fromFile(new File(getFilesDir(), "foo.jpg"));
  shareIntent.putExtra(Intent.EXTRA_STREAM, uri.toString());
  </pre>
  </code>
  </p>
  
  @param shareIntent The share intent.
  
  @see Intent#ACTION_SEND
  @see Intent#ACTION_SEND_MULTIPLE