开发者

Private storage in 2.1?

开发者 https://www.devze.com 2023-03-19 11:04 出处:网络
I need 开发者_高级运维to store files on SD card or other storage. I\'d like this storage to be private (not very critical)

I need 开发者_高级运维to store files on SD card or other storage. I'd like this storage

  • to be private (not very critical)
  • to go away on app uninstall
  • not to be erased by OS if resources limited

User will take pictures and they will be uploaded to server. I want to be more or less sure that I have those files until they uploaded and then I will delete them on completion.

I thought getExternalFilesDir is what I need but it's only from API 8 and I develop for API 7 (2.1)

What should i use? What is my best option? Also, is there any way to check available space? I need maybe 2-5Mb total..


Just store it within your apps data folder and you are good.

0

精彩评论

暂无评论...
验证码 换一张
取 消