是否有任何存储 uri 可用于在不使用清单中的写入权限的情况下共享图像?

Is there any storage uri that can be used to share an image without using write permissions in manifest?

我想通过 SEND_ACTION intent 从我的应用程序中分享一个 screenahot。据我所知,它要求所有应用程序都可以使用文件位置,但是是否有任何其他意图或 uri 路径可以在清单中没有写权限的情况下访问,例如缓存或其他东西? 我不想为此增加我的许可数。 感谢您的任何回复。

您可以将文件放入应用程序缓存目录 getCacheDir() 的子目录中,并使用 android.support.v4.content.FileProvider.

通过 content: uri 共享它