0

I am developing an application for android 3.0 honeycomb and I wanted to understand the memory management in honeycomb. My application is actually a book & for each chapter we have these html-pages which we load in web view and these pages are not rendered from server but they are kept in assets folder. So at the end we have a lot of html files and images in assets folder.

Now the problem is that when we change the orientation of device the application crashes with OutOfMemoryException. Is this happening because of large size of the html or is it something else? Can this problem be solved if we had smaller sized html files?

Ankit
  • 4,426
  • 7
  • 45
  • 62

1 Answers1

0

The issue may be because of the images. I was using images in one of my applications & i was experiencing the same issues "OutOfMemoryException", when i used the System.gc(), it worked for me. Please see this.

For Android memory management please see this.

Community
  • 1
  • 1
Yaqub Ahmad
  • 27,569
  • 23
  • 102
  • 149