pass object to android activity

www.‮uttual‬ri.com
pass object to android activity

pass an object from one activity to another on android:

Intent intent = new Intent(fromClass.this,toClass.class).putExtra("myCustomerObj",customerObj);

Intent intent = getIntent().putExtra("myCustomerObj",customerObj);

get Extras:

getIntent().getExtras();
Created Time:2017-08-31 08:40:50  Author:lautturi