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.
精彩评论