Android Programming and Technical Programming Technical

How many components are these in an intents?

Options
1) Action
2) Category and extras
3) Data & data type
4) All of above

Read Solution (Total 3)

Android Other Question

Is it possible to create an activity without setContentView(R.layout.main) xml file?

Options
1) Yes
2) No
3) None
4) Question is not correct
What is the importance of putExtra() method in Android? How is it different from setData()? Anyway both are passing data, then what is the difference?

Options
1) Both putExtra() and setData() are used for same purpose i.e. to pass data to other component.
2) setData() - is to pass data on which to take action. putExtra() - is to send extra information about this intent.
3) setData() - is to send extra information about this intent. putExtra() - is to pass data on which to take action.
4) Logically both are same, so one can omit setData(), and pass all data through putExtra only.