android-storage-permissions
android-storage-permissions copied to clipboard
Image sharing bug
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 Thank you. In my case not replace, but add the putExtra(...) method solved my problem. Hope the team would do something to this.