Genokiller
V2EX  ›  问与答

请教一下 Android 拍照图片存储的问题

  •  
  •   Genokiller · Dec 28, 2018 · 1688 views
    This topic created in 2731 days ago, the information mentioned may be changed or developed.
    我用同一个文件来存储每次拍照得到的图片,但在文件管理器中看到的缩略图依旧是第一次生成时图片的缩略图,无法更新,我试了网上说的更新相册的广播方法,相册中是正确显示了,但 SD 卡中的图片缩略图依旧无法更新,目前想到的是先删除再更新,有没有更好的办法可以直接刷新缩略图呢,谢谢了!
    2 replies    2018-12-28 14:17:28 +08:00
    yukiww233
        1
    yukiww233  
       Dec 28, 2018
    删掉原先的,文件名加个时间戳
    那么多第三方文件管理器,你总不能去把每一个的缓存清一遍
    Genokiller
        2
    Genokiller  
    OP
       Dec 28, 2018
    @yukiww233 看来只能这样了,感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   975 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:28 · PVG 07:28 · LAX 16:28 · JFK 19:28
    ♥ Do have faith in what you're doing.