Is it possible to share an image with code something like this?
No, because it ACTION_SENDdoes not use Uri. He uses EXTRA_TEXTor EXTRA_STREAM.
My goal is so that my application does not require permission to write to the repository, but to be able to share images that it dynamically creates. Is there any way to do this?
ContentProvider , Uri, , EXTRA_STREAM. FLAG_GRANT_READ_URI_PERMISSION, Intent , Uri (, setData()), , EXTRA_STREAM.
ACTION_VIEW ( : , PDF ).