2

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.)

Ken Kinder
  • 12,654
  • 6
  • 50
  • 70

1 Answers1

3

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.

Community
  • 1
  • 1
Yashima
  • 2,248
  • 2
  • 23
  • 39