Tell me, please, what's the problem?

public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_share: String currentImageUrl = photos.get(viewPager.getCurrentItem()).getSrc_big(); Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_STREAM, currentImageUrl); shareIntent.setType("image/jpeg"); startActivity(shareIntent); break; default: break; } return false; } private void setShareIntent(Intent shareIntent) { shareIntent = pagerIntent; if (mShareActionProvider != null) { mShareActionProvider.setShareIntent(shareIntent); } } 
  • To begin with, you are not fumbling an image, but a link, and specify the type "image/jpeg" - Vladyslav Matviienko
  • Thanks, but how to pull the image from the link? - Ivan Chmyr

0