android - Save state on fragments produces StackOverflow error due to parcelable object -


I am using 2 different pieces under an activity. One of the pieces is in the list and the second list has a detailed view of each element. When the activity creates pieces, the 2 object is passed as a parameter on the new instance.

It is a complex object inside many objects (BigIntega, Arlist, Strings). To be used with pieces when the information is passed through the pieces, there is no problem in parsing the data, in fact I think that not to pass the piece between the pieces as the parameter, the state In order to save, this object must be parcelable.

This object is inside a list of objects in which the reference to the main one is referred. Looking at Object 2 as Object 1 and O2, this would be a "graphical" explanation:

O1:

  • String
  • BigInteger
  • Li> BigInteger

  • O1 & lt; -------- This is a reference to the O1 object

    When I leave the activity (by clicking on the phone on the phone) and it tries to save the state, I get a StarOverflow error Could it be related that the parcel qualified enters an endless loop, which tries to save the whole object instead of the context? I had to face many troubles by putting parslatable objects on the hands in Android.

    Look at the parcelable definitions of your class if you have any examples.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -