INTRODUCTION TO NET
APPLICATION DEVELOPMENT
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Call
|
|
Branch
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -If the activity becomes visible to the user again, the onRestart() method gets called, followed by onStart() and onResume(). The activity may go through this cycle many times.
Detailed explanation-2: -On Clicking the back button from the New Activity, the finish() method is called and the activity destroys and returns to the home screen.
Detailed explanation-3: -onCreate() You must implement this callback, which fires when the system first creates the activity.
Detailed explanation-4: -Start the Second Activity To start an activity, call startActivity() and pass it your Intent . The system receives this call and starts an instance of the Activity specified by the Intent .
Detailed explanation-5: -finish() method is used to finish the activity and remove it from back stack. You can call it in any method in activity.