Hello!
Is it possible to share a picture with an android application, for example, in VK or somewhere else. Plain text is sent without problems, but I can not figure it out with a picture. Is it even possible to do this?
When I click on the button, I get the address of the image from the database (I use sugar) and try to send it using share.
In the application, the picture is displayed, but I can not send.
@Override public void onClick(View view) { Contact img = Contact.findById(Contact.class, idInt); // получаю из БД адрес картинки int photoId = img.photoId; switch (view.getId()) { case R.id.fab: Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/jpeg"); share.putExtra(Intent.EXTRA_STREAM, photoId); startActivity(Intent.createChooser(share, "Share Image")); break; } }
photoId)? - post_zeew