Adding preferences

Started by thiamant, September 30, 2010, 10:29:27 PM

Previous topic - Next topic

thiamant

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

EgonOlsen