Team Leader Android Developer Question:
Download Job Interview Questions and Answers PDF
Tell me how will you pass data to sub-activities?
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
Code
Bundle b=new Bundle();
b.putString(“Email”, “ggl@xyz.com”);
i.putExtras(b); //where I is intent
Download Team Leader Android Developer Interview Questions And Answers
PDF
Previous Question | Next 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? |