How to make BackendlessUser Serializable

I’m trying to pass a User between two activities on Android by passing it as Serializable Extra:

Intent intent = new Intent(PeopleActivity.this, ConversationActivity.class);
intent.putExtra("withUser", contacts.get(position));
startActivity(intent);

since the class BackendlessUser implements serializable. However when I run it it gives me this error:

java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.backendless.BackendlessUser)
                                                                               at android.os.Parcel.writeSerializable(Parcel.java:1468)
                                                                               at android.os.Parcel.writeValue(Parcel.java:1416)
                                                                              ....
                                                                            Caused by: java.io.NotSerializableException: java.lang.Object
....

Due to, I think, this variable:

public final class BackendlessUser implements Serializable
{
  private final Map<String, Object> properties = new HashMap<String, Object>();

Is there anyone that can help me,Thanks in advance,Gabriele

Hi Gabriele,

As a workaround, you could pass only the fields user.getProperties() between activities.