Hi,

I've got some issues with onSaveInstanceState (the View one, not the
Activity). I have in my main Activity several objects, here's a
snippet of my two implementations, one through XML Inflate, and one in
pure java code.

//Inflated from XML
dialbig = (Object1) findViewById(R.id.dialbig);

//Implements a class directly
dialsmall = new Object2(this, "A name");
dialsmall.setSaveEnabled(true);

I had to do this because of this particular constructor in my custom
view Object2, which needs to pass a String at runtime so I couldn't
inflate it from XML.

Let's explain my problem now. When my Activity is running and I press
Home, my overriden method onSaveInstanceState in Object1 is properly
called, allowing me to save the internal state. BUT the same method,
overriden in Object2 is never called. Absolutely never...

Is it because I created it programmatically, do we need to do
something to enable saving while doing this ?

Thanks for your help.

Rgds, Alex

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to