Team Leader Android Developer Question:

Tell me how will you pass data to sub-activities?

Tweet Share WhatsApp

Answer:

We can use Bundles to pass data to sub-activities. There are like HashMaps that and take trivial data types. These Bundles transport information from one Activity to another

Code

Bundle b=new Bundle();
b.putString(“Email”, “ggl@xyz.com”);
i.putExtras(b); //where I is intent

Download Team Leader Android Developer PDF Read All 67 Team Leader Android Developer Questions
Previous QuestionNext Question
Please explain how can two Android applications share same Linux user ID and share same VM?Tell me what is An android manifest file?