Author Topic: Adding preferences  (Read 999 times)

Offline thiamant

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

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.

Thanks

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: Adding preferences
« Reply #1 on: September 30, 2010, 11:44:11 pm »
This problem is most likely similar to this: http://www.jpct.net/forum2/index.php/topic,1657.0.html