[android-developers] Re: saveInstanceState problem

2009-10-08 Thread Stefan
Hi, thanks for your answers! The rotation of the device is the only config. change, what I think will happen by using my app. But because this is not guaranteed, i found a way, how i can save my instance of my SaveHelper class (sh). I "implements" the Parcelable, and so i can save this in a Bundl

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread Mike
I'm assuming based on your initial question that you really only care about screen orientation changes, correct? Keep in mind that, by default, Android will assume that each of your Activities can deal with screen orientation changes. You have to explicitly tell Android that your Activity is to

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread Mike
I'm assuming based on your initial question that you really only care about screen orientation changes, correct? Keep in mind that, by default, Android will assume that each of your Activities can deal with screen orientation changes. You have to explicitly tell Android that your Activity is to

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread James Yum
Hi Stefan, You probably shouldn't handle the config changes, just for the purpose of keeping your activity alive. Just save the instance state like you were originally planning. Cheers, James On Wed, Oct 7, 2009 at 11:17 PM, Stefan wrote: > > Hi Mike, > > thanks for your answer. > > No, I don't

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread Stefan
hi @all, one more question: If I want to handle the configChanges in my own way, which things must I consider?? In the AndroidManifest.xml, I can set: - mcc, mnc, locale, touchscreen, keyboard, keyboardHidden, navigation, orientation, screenLayout, fontScale Are there more possible configChanges

[android-developers] Re: saveInstanceState problem

2009-10-07 Thread Stefan
Hi Mike, thanks for your answer. No, I don't implement the Serializible Interface. The class gets the lon/lat pairs and if i call saveFile()-method, I save my way- and trackpoints on the sdcard (my source code blow up so i decide to implement this in an own class). Now my question is: if I have

[android-developers] Re: saveInstanceState problem

2009-10-07 Thread Mike
Hi Stefan, Well, I think the code in getSaveInstanceState is going to cause a ClassCastException because you're storing String objects, yet trying to cast those Strings to SaveHelper and Location respectively. You'll have to write the non-transient fields from your SaveHelper and Location object