开发者

Where should I store images if the user doesn't have an SD card?

There are a few G1 users reporting that my app won't display images. I can only imagine this is because they don't have开发者_开发技巧 an SD card.

My app is heavy on images. Is it appropriate to store images on the internal memory? I don't even know if there'd be enough space.


It's not appropriate to store them on the internal memory. What you should do is check for the existence of an SD card and alert the user if they don't have one telling them your app won't work without it. See here for how to check external media availability.


I agree with Felix that internal memory should not be used for cache. But anyway if there are not so much images you can use getCacheDir to store them. http://developer.android.com/reference/android/content/Context.html#getCacheDir().

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜