开发者

What's the best way of storing application data in Android?

Suppose you were writing an app that stored a large, ordered data开发者_运维百科 structure that remains static through the life of the application. What's the best way of including that kind of data in your Android app?

(In my particular case, I'm working on a Unicode character map, and I need a place to stick data about the characters to display.)


You could also ship with a pre-created database as discussed in this question: Ship an application with a database

Although I think that Andrew's solution is easier to implement since the database comes with it's own set of difficulties.

On the other hand databases are what you would use for "a large, ordered data structure" even if it remains static because access to databases should be faster than file access.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜