Author Topic: Adding preferences  (Read 1341 times)

Offline thiamant

  • byte
  • *
  • Posts: 19
    • View Profile
Adding preferences
« on: September 30, 2010, 10:29:27 pm »

I'm trying to add some preferences running an activity that is extending PreferenceActivity. The problem is that when starting the activity changing some preferences and then coming back most of the polygons are not showing anymore (the onStop method is being called and I guess some memory is being freed and hence the model not showing properly). I can't load the model again just for changing some preferences since it takes too long so I'm just loading it the first time that onSurfaceCreated method is called.

Is there any way to force android not to release any memory ? I've been trying to setPersistent(true) but it's not working.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12081
    • View Profile
Re: Adding preferences
« Reply #1 on: September 30, 2010, 11:44:11 pm »
This problem is most likely similar to this:,1657.0.html