Where to save pictures on Android?

前端 未结 5 2044
被撕碎了的回忆
被撕碎了的回忆 2020-12-22 23:06

My application uses quite a lot of pictures that are downloaded from the internet and cached locally on the Android phone. I am wondering, what is the correct way to save th

5条回答
  •  粉色の甜心
    2020-12-22 23:40

    You can hide images from the MediaScanner if you put it in a hidden dir (i.e., with a dot prefixed) such as /sdcard/.donotscan/.

    Update: As romainguy mentions on twitter this also works if you put a file named .nomedia into the dir.

提交回复
热议问题