Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);
1. Starts a browser activity
2. Starts a sub-activity
3. Starts an activity service
4. Sends results to another activity.
Correct Answer : Get Lastest Questions and Answer : Explanation: Starting another activity doesn't have to be one-way. You can also start another activity and receive a result back. To receive a result, call startActivityForResult() (instead of startActivity()).
For example, your app can start a camera app and receive the captured photo as a result. Or, you might start the People app in order for the user to select a contact and you'll receive the contact details as a result.
Of course, the activity that responds must be designed to return a result. When it does, it sends the result as another Intent object. Your activity receives it in the onActivityResult() callback.
Note: You can use explicit or implicit intents when you call startActivityForResult(). When starting one of your own activities to receive a result, you should use an explicit intent to ensure that you receive the expected result.
Question : When using an implicit intent, what process does the system use to know what to do with it?
1. Intent resolution
2. Intent declaration
3. Intent overloading
4. Intent transition
Correct Answer : Get Lastest Questions and Answer : Explanation: INTENT RESOLUTION PROCESS To start an Activity using an implicit Intent, the system checks three aspects Intent Action Intent Category Intent Data (URI and Type)
Intent Resolution When the system receives an implicit intent to start an activity, it searches for the best activity for the intent by comparing the intent to intent filters based on three aspects:
The intent action The intent data (both URI and data type) The intent category The following sections describe how intents are matched to the appropriate component(s) in terms of how the intent filter is declared in an app's manifest file.
Question : Which of the following is NOT true about the MenuItem interface?
1. The MenuItem instance will be returned by the Menu class add(...) method.
2. MenuItem can decide the Intent issued when clicking menu components.