how to pass an object in an object to an activity code example
Example 1: android pass object to activity
Intent intent = new Intent(fromClass.this,toClass.class).putExtra("myCustomerObj",customerObj);
Example 2: android pass object to activity
Customer customerObjInToClass = getIntent().getExtras().getParcelable("myCustomerObj");