How send data from one activity to another in Android?
Answer
passing the custom Object in activity,
Answer
passing the custom Object in activity,
- Pass it to the activity, Intent intent = new Intent(getActivity(), Activity. class); intent. putExtra(“list”, (Serializable) mainData. getData(). getFeaturedProduct()); getActivity(). …
- And get it. ((List<HomeProductsModel>) getIntent(). getExtras(). getSerializable(“list”))