How send data from one activity to another in Android?

Ivanesn

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

Tìm kiếm

Back
Top