We can use bundles to pass data to sub-activities. There are HashMaps that take trivial data types. These bundles transport information from one activity to another.
Syntax:
Bundle b=new Bundle();
b.putString(“Email”, “abc@xyz.com”);
i.putExtras(b); //where I is intent