what does getserializableextra mean in android studio with respect to receiving and Intent Extra
有人能解释一下在Android Studio中,
public void oncreate(bundle savedinstanceState)super.oncreate(savedinstancestate);
1 2 3 | UUID crimeId = (UUID) getActivity(). getIntent() .getSerializableExtra( CrimeActivity.EXTRA_CRIME_ID); mCrime = CrimeLab.get( getActivity()).getActivity()). getCrime( crimeId); |
首先,它不是
To
serialize an object means to convert its state to a byte stream so
that the byte stream can be reverted back into a copy of the object. A
Java object isserializable if its class or any of its superclasses
implements either thejava.io.Serializable interface or its
subinterface,java.io.Externalizable .Deserialization is the process
of converting theserialized form of an object back into a copy of the
object.