InterviewSolution
| 1. |
In Activity life-cycle, what is the first and last callback method will be guaranteed invoked by the system? |
Answer»
They specify which application will satisfy the intent, by supplying either the target app's package name or a fully-qualified component class name.For EXAMPLE, to start a component in your own app, because you know the class name of the activity or service you want to start. For example, you might start a new activity within your app in response to a user action, or start a service to download a FILE in the background.
They do not name a specific component, but instead declare a general action to PERFORM, which allows a component from another app to handle it. For example, if you want to show the user a location on a map, you can use an implicit intent to REQUEST that another capable app show a specified location on a map. |
|