Intent Image Share-file Format Not Supported
I'm unable to share the image on social media when I clicked on the share button. It showed the Toast File format not supported public void onBindViewHolder(final ViewHolder hold
Solution 1:
Quoting the documentation, EXTRA_STREAM is supposed to point to "A content: URI holding a stream of data associated with the Intent, used with ACTION_SEND to supply the data being sent."
You are supplying an httpsUri, and other apps will not be expecting it. Not every possible app that supports ACTION_SEND will have the INTERNET permission, anyway.
If you want to share some content, typically it needs to be local on the device and shared via a FileProvider or some other form of ContentProvider. Prior to Android 7.0, a file scheme pointing to a file on external storage often works as well.
Post a Comment for "Intent Image Share-file Format Not Supported"