0

How do I copy the parcelable data object I received through an intent from another package to the local object? Of course so that it includes the fields and their values. Must the parcelable object contain write(dest: Parcel, flags: Int)? I ask because I see the values are saved locally without this method.

galaxigirl
  • 2,390
  • 2
  • 20
  • 29

1 Answers1

0

To extract a Parcelable object from Intent, just do this:

val parcelableObject = intent.getParcelableExtra("extraKey")
David Wasser
  • 93,459
  • 16
  • 209
  • 274