久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='zSV6y'></bdo><ul id='zSV6y'></ul>
    <tfoot id='zSV6y'></tfoot>

    1. <i id='zSV6y'><tr id='zSV6y'><dt id='zSV6y'><q id='zSV6y'><span id='zSV6y'><b id='zSV6y'><form id='zSV6y'><ins id='zSV6y'></ins><ul id='zSV6y'></ul><sub id='zSV6y'></sub></form><legend id='zSV6y'></legend><bdo id='zSV6y'><pre id='zSV6y'><center id='zSV6y'></center></pre></bdo></b><th id='zSV6y'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zSV6y'><tfoot id='zSV6y'></tfoot><dl id='zSV6y'><fieldset id='zSV6y'></fieldset></dl></div>

      1. <small id='zSV6y'></small><noframes id='zSV6y'>

        <legend id='zSV6y'><style id='zSV6y'><dir id='zSV6y'><q id='zSV6y'></q></dir></style></legend>

        通過 Intent 共享照片時刪除 EXIF 位置數據

        EXIF location data removed when sharing photo via Intent(通過 Intent 共享照片時刪除 EXIF 位置數據)

            <small id='Rolcb'></small><noframes id='Rolcb'>

            <legend id='Rolcb'><style id='Rolcb'><dir id='Rolcb'><q id='Rolcb'></q></dir></style></legend>
              <tfoot id='Rolcb'></tfoot>
                <bdo id='Rolcb'></bdo><ul id='Rolcb'></ul>

                • <i id='Rolcb'><tr id='Rolcb'><dt id='Rolcb'><q id='Rolcb'><span id='Rolcb'><b id='Rolcb'><form id='Rolcb'><ins id='Rolcb'></ins><ul id='Rolcb'></ul><sub id='Rolcb'></sub></form><legend id='Rolcb'></legend><bdo id='Rolcb'><pre id='Rolcb'><center id='Rolcb'></center></pre></bdo></b><th id='Rolcb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Rolcb'><tfoot id='Rolcb'></tfoot><dl id='Rolcb'><fieldset id='Rolcb'></fieldset></dl></div>
                    <tbody id='Rolcb'></tbody>
                • 本文介紹了通過 Intent 共享照片時刪除 EXIF 位置數據的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我最近將我的應用程序切換到了 Scoped Storage.但是,我注意到,當我從應用程序內(通過 Intent)共享圖像時,GPS 位置數據會從圖像的 Exif 元數據中刪除.我知道 Scoped Storage 對訪問圖像的 Exif 位置數據有一些限制,并且我知道權限 <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION"/>,但是添加此權限似乎在共享圖像時沒有任何效果.知道如何通過 Intent 共享圖像,同時將位置數據保留在圖像的 Exif 數據中嗎?

                  I have recently switched my app to Scoped Storage. However, I have noticed that when I share an image from within the app (via an Intent), the GPS location data is removed from the image's Exif metadata. I am aware that Scoped Storage has some restrictions on accessing the Exif location data of an image and I am aware about the permission <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />, however adding this permission does not seem to have any effect when sharing the image. Any idea how to share images via Intent while retaining the location data in the image's Exif data?

                  這是我的代碼:

                   val imageUri = mediaList[photo_view_pager.currentItem].uri
                  
                   val intent = Intent().apply {
                       val mediaType = MimeTypeMap.getSingleton()
                          .getMimeTypeFromExtension("jpg")
                       putExtra(Intent.EXTRA_STREAM, imageUri)
                       type = mediaType
                       action = Intent.ACTION_SEND
                       flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
                   }
                  
                   startActivity(Intent.createChooser(intent, getString(R.string.share_hint)))
                  

                  非常感謝您的任何幫助!

                  Thanks a lot in advance for any help!

                  推薦答案

                  我在 Android 11 上的體驗.

                  My experiences on Android 11.

                  也必須在運行時請求 ACCESS_MEDIA_LOCATION.

                  Have to request ACCESS_MEDIA_LOCATION at runtime too.

                  服務應用應具有所有文件訪問權限",以便接收應用從 exif 讀取緯度、經度.

                  The serving app should have 'all files access' in order for the receiving app to read lat, lon from exif.

                  如果服務應用程序可以訪問所有文件,則不需要 MediaStore.setRequireOriginal 從文件中讀取 lat,lon 本身.

                  If the serving app has all files access it does not need the MediaStore.setRequireOriginal to read lat,lon itself from file.

                  (我從未使用過 MediaStore.setRequireOriginal,但現在將進行調查).

                  (I never used MediaStore.setRequireOriginal but will investigate now).

                  這篇關于通過 Intent 共享照片時刪除 EXIF 位置數據的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 X 和 Y)
                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  CLLocation returning negative speed(CLLocation 返回負速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  <legend id='qpS3b'><style id='qpS3b'><dir id='qpS3b'><q id='qpS3b'></q></dir></style></legend>
                    1. <i id='qpS3b'><tr id='qpS3b'><dt id='qpS3b'><q id='qpS3b'><span id='qpS3b'><b id='qpS3b'><form id='qpS3b'><ins id='qpS3b'></ins><ul id='qpS3b'></ul><sub id='qpS3b'></sub></form><legend id='qpS3b'></legend><bdo id='qpS3b'><pre id='qpS3b'><center id='qpS3b'></center></pre></bdo></b><th id='qpS3b'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qpS3b'><tfoot id='qpS3b'></tfoot><dl id='qpS3b'><fieldset id='qpS3b'></fieldset></dl></div>
                    2. <small id='qpS3b'></small><noframes id='qpS3b'>

                          <tbody id='qpS3b'></tbody>
                        • <tfoot id='qpS3b'></tfoot>
                            <bdo id='qpS3b'></bdo><ul id='qpS3b'></ul>
                            主站蜘蛛池模板: 草久在线视频 | 欧美 日韩 国产 成人 | 日韩中文一区 | 一级毛片播放 | 日韩欧美三级电影 | 欧美日韩欧美 | 黄色三级在线播放 | 亚洲国产在 | 日韩电影中文字幕 | 黄色片在线观看网址 | 亚洲综合热 | 国产一区二区在线免费观看 | 久久国产婷婷国产香蕉 | 欧美大片一区二区 | 在线一区二区观看 | 久久国产日韩欧美 | 伊人久久一区二区 | 毛色毛片免费看 | 日韩视频在线观看一区二区 | 国产黄色大片 | 久久精品一 | 亚洲成人国产综合 | 日干夜操 | 亚洲精品美女在线观看 | av在线免费观看网址 | 国产精品视频免费看 | 精品在线| 欧美色综合一区二区三区 | www日韩| 亚洲午夜视频 | 精品一区二区久久久久久久网站 | 国内精品久久久久 | 国产精品高潮呻吟久久aⅴ码 | 欧美日韩国产在线 | aaa国产大片| 国产精品视频 | av网站在线看 | 国产一区二区三区视频 | 欧美激情精品久久久久 | 成人性生交大片免费看中文带字幕 | 日韩成年人视频在线 |