Android Programming and Technical Programming Technical

What will happen if an activity is started with implicit intent, and there is no matching intent-filter?

Options
1) Nothing will happen, but it will not launch any new screen.
2) Nothing will happen, some how how it launches target component
3) It will throw run time exception - activityNotFoundException, and crashes if it is handled properly.
4) Compile time error.

Read Solution (Total 0)

Android Other Question

What will happen if there is no action in an implicit intent, will it trigger any component?

Options

1) Will pass the action test if intent-filter has at least one action.
2) Will pass the action test if intent-filter also doesn't have any action.
3) Will pass the test if intent is explicit. In case of explicit intent it will test for intent resolution.
4) Will pass the action test only if intent has at least one action.
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.