From c20385315f2de848c006e8860e1b63577e48d258 Mon Sep 17 00:00:00 2001 From: shhu <863116814@qq.com> Date: Thu, 16 Dec 2021 17:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 634e3b1..eb94394 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ private fun Uri.finishPending( 但是保存到系统图库并分享的场景明显就不符合这个场景,因为图库不是应用私有的空间。 -``` +```kotlin private fun shareImageInternal() { val uri = assets.open("wallhaven_rdyyjm.jpg").use { it.saveToAlbum(this, fileName = "save_wallhaven_rdyyjm.jpg", null) @@ -263,8 +263,11 @@ private fun shareImageInternal() { ## 参考资料 [Demo](https://github.com/hushenghao/MediaStoreDemo.git) + [访问共享存储空间中的媒体文件](https://developer.android.google.cn/training/data-storage/shared/media) + [Android MediaStore](https://developer.android.google.cn/reference/android/provider/MediaStore) + [OpenSDK支持FileProvider方式分享文件到微信]( https://developers.weixin.qq.com/community/develop/doc/0004886026c1a8402d2a040ee5b401)