pass object from activity to fragment code example
Example 1: android pass object to activity
Intent intent = new Intent(fromClass.this,toClass.class).putExtra("myCustomerObj",customerObj);
Example 2: how to pass data from activity to fragment
passing data from activity to fragment