It is necessary through the intent to make it possible to share an image from resources. The text is displayed normally, but the image itself, when preparing for publication (for example, in the VC), writes an “error” during the download. Uri is definitely correct. Help pliz what could be the problem. Here is a sample code.
Uri imgUri = Uri.parse("android.resource://com.shppcs.igo/" + R.drawable.ic_gomer_run_jpeg); Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_STREAM, imgUri); shareIntent.putExtra(Intent.EXTRA_TEXT, "Я бросаю тебе вызов"); shareIntent.setType("image/*"); startActivity(Intent.createChooser(shareIntent, "Бросить вызов"));