Yeah, I get it work.
I only add this to my class:
private SaveHelper(Parcel in) {
}
@Override
public void writeToParcel(Parcel dest, int flags) {
// TODO Auto-generated method stub
}
public static final Parcelable.Creator<SaveHelper> CREATOR =
new Parcelable.Creator<SaveHelper>()
{
public SaveHelper createFromParcel(Parcel in)
{
return new SaveHelper(in);
}
public SaveHelper[] newArray(int size)
{
return new SaveHelper[size];
}
};
@Override
public int describeContents() {
// TODO Auto-generated method stub
return 0;
}
And in my "main"-app:
public void onSaveInstanceState(Bundle savedInstanceState) {
super.onSaveInstanceState(savedInstanceState);
............
savedInstanceState.putParcelable("sh", sh);
}
public void getSaveInstanceState(Bundle savedInstanceState)
{
if (savedInstanceState!=null)
{
.....
sh = (SaveHelper)savedInstanceState.getParcelable("sh");
}
}
But i don't really understand, why... I test it with the emulator. I
send some geo data via telnet, than i rotate the emulator and than i
send some more geo data and in my gpx-file, ALL gps data are stored :)
Tomorrow, i will test it on a real device with more than 4 gps data ;)
I hope my app will be responsive enough ;)
Thanks,
Stefan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---