I have an array
of objects
in a class and it causes my program to not compile
. I don't know the best way to split the objects up/if this is the best way to do it. From what I've seen, that is the only option or importing from a text file. I don't understand how my objects have take up 64 K bytes of memory? Is there a way I can see exactly how much memory my class is taking? Thanks.
Asked
Active
Viewed 2,711 times
1

dchamb
- 179
- 2
- 10
1 Answers
1
Consider storing data in string resource file (strings.xml) or SQLite then do eager/lazy loading as an object at run time.
About memory consumption, you can analyze it with DDMS.
-
is there another way of doing this without using a database? – dchamb Jan 09 '16 at 05:16
-
possibly a properties file? – dchamb Jan 09 '16 at 05:18
-
I meant it could be the arrays in the string resource file – datalost Jan 10 '16 at 21:49
-
will an object still be accessible if moved to the string resource file? – dchamb Jan 10 '16 at 22:03