Skip to content Skip to sidebar Skip to footer

Why Is My Parcelable Creator Not Working?

I failed to make my Class Parcelable and I don't know why public class Set : Java.Lang.Object, IParcelable { public string[] jugador { get; set; } = new string[2]; public b

Solution 1:

returnnewSet(parcel.ReadStringArray(), parcel.ReadBooleanArray()...

At

parcel.ReadBooleanArray()

You have no boolean arrays in the constructor

public Set (
    string[] Jugador, 
    int[] Games, 
    int[] NoForzados, 
    int[] Aces, 
    int[] Winners, 
    int[] DobleFaltas, 
    int[] Primeros, 
    int[] PrimerosGanados, 
    int[] Segundos,
    int[] SegundosGanados)

Did you forget to set jugado?

Post a Comment for "Why Is My Parcelable Creator Not Working?"