how to pass intent as object 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");