I\'ve been working with lots of Fragments
recently and have been using two distinct methods of passing in objects to the Fragments, but the only difference that
There are 3 ways to pass objects to a fragment
They are:
setArguments
with Serializable
objects is the slowest way (but okay for small objects, I think) and you have automatic state restoration.Parcelable
is a fast way (prefer it over 2nd one if you have collection of elements to pass), and you have automatic state restoration.http://developer.android.com/reference/android/os/Parcelable.html