Android
Programming and Technical
Programming
Technical
Which method need to be called to shut down an activity, itself?
Options
1) finish()
2) onStop()
3) onDestroy()
4) None of these
Read Solution (Total 0)
Android Other Question
What is the difference between intent, sticky intent, and pending intent?
Options
1) intent - is a message passing mechanism between components of android; Sticky Intent - Sticks with android, for future broad cast listeners; Pending Intent - Will be used when some one wants to fire an intent in future.
2) intent - is a message passing mechanism between components of android except for Content Provider; Sticky Intent - Sticks with android, for future broad cast listeners; Pending Intent - Will be used when some one wants to fire an intent in future.
3) intent - is a message passing mechanism between components of android except for content Provider;
Sticky Intent - Sticks with android, for future broad cast listeners; Pending Intent - Will be used when some one wants to fire an intent in future and may be at that time that app is not alive.
4) same as 3rd option, but sticky and pending intent are same.
Which of the following are appropriate for saving the state of an android applications?
Options
1) Activity.onFreeze()
2) Activity.onStop()
3) Activity.onPause()
4) Activity.onDestroy()