I have three components whose data I have to synchronise.
-
Activity - This activity get data from
Content Provider
and has aViewPager
. It passes this data (Fragment.getInstance(data...)
) to the second component which is aFragment
-
Fragment - This fragment has a
RecyclerView
andonClick()
of a particular item, data is passed through intent to the third component which is anActivity
. -
Activity - Here the data which is received is modified.
What would be the best way to sync this modification across all the three components?
Aucun commentaire:
Enregistrer un commentaire