Question

write now, I am working on an app that is based on an application written in java for the computer. in that program, I loaded several database files into it. those files were .properties files. I already have those files, and they were fast on a computer, but they are very slow on an android. is there a better file that I should be using that I can create by just converting the .properties files into them (I don't want to re-create the files because they took several days to create, and it was very hard to do, so I really don't want to do it again) I have heard that android generally use sqlite, but I don't know how to use that, so if that is the best option, could someone tell me how I would go about using it (by the way there are several different database files, not just one).

Was it helpful?

Solution

So really what you are doing has nothing to do with a database. You have configuration parameters that vary depending on the situation.

This data storage documentation provides an overview of different ways of storing data in Android.

I'm not sure when/why exactly your config parameters change, but generally shared preferences are a good model for saving a bunch of primitive type data that needs to be accessed through the app.

You also don't say how exactly you are processing the preferences files now, but you might also get performance improvements by caching the data, so you only have one long load pause.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top