Well the question speaks for itself. Should I declare an Enum or is there an already designated place within the app's file system?
Asked
Active
Viewed 1,168 times
2
-
3SharedPreferences would be an extremely poor choice for declaring constants. – Graham Borland Aug 29 '12 at 11:57
1 Answers
6
You can create a resource file in res/values
with any filename you want, containing values of various types. Read the docs.

Graham Borland
- 60,055
- 21
- 138
- 179
-
Well thank you sir. Although I only see integers there, can you store floats and doubles? – Moises Jimenez Aug 29 '12 at 12:04
-
1Apparently you can. See http://stackoverflow.com/questions/3282390/add-floating-point-value-to-android-resources-values – Graham Borland Aug 29 '12 at 12:28
-
Tried the method shown in that thread but it doesn't work and I think the thread is dead :(. – Moises Jimenez Aug 30 '12 at 10:08