1

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.

dchamb
  • 179
  • 2
  • 10

1 Answers1

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.

Debugging Memory

“Code too large” compilation error in Java

Community
  • 1
  • 1
datalost
  • 3,765
  • 1
  • 25
  • 32