android-storage-permissions icon indicating copy to clipboard operation
android-storage-permissions copied to clipboard

Image sharing bug

Open Tomas13 opened this issue 8 years ago • 1 comments

With the implementation provided in codelabs I couldn't share image from "data privacy" app to Telegram or Whatsapp. Whenever I clicked to share to those apps there was a toast popping up saying "Unsupported content". I hope that you'll find some workaround about that bug, so that developers, learning this project will not meet this bug. Personally, I resolved this issue by replacing the line in shareImage(String path) method intent.setDataAndType(contentUri, "image/png"); to this one sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(contentUri.toString()));

Best regards.

Tomas13 avatar Oct 19 '17 09:10 Tomas13

@Tomas13 Thank you. In my case not replace, but add the putExtra(...) method solved my problem. Hope the team would do something to this.

mariohide avatar Nov 02 '19 02:11 mariohide