Where to save pictures on Android?

前端 未结 5 2042
被撕碎了的回忆
被撕碎了的回忆 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:31

    Just a tip - if you save them on the SD Card, they will be scanned by the MediaScanner and will appear in the users's Gallery (Photos), which you probably don't want. So you probably want to store them on the phone, or somehow tell MediaScanner not to scan them (apparently impossible after a quick Google search.)
    Probably best to store a select few in your application's private directory, which will be removed when your application is uninstalled.

提交回复
热议问题