What is the difference between Activity context and Application Context?

  • 0 replies
  • 51 views
*

Offline mechanic

  • Engineer
  • *****
  • 3307
  • Gender: Male
  • Engineer
    • View Profile
    • Engineering Forum
Question: What is the difference between Activity context and Application Context?


Options are:



A) The Activity instance is tied to the lifecycle of an Activity,
while the application instance is tied to the lifecycle of the application.

B) The Activity instance is tied to the lifecycle of the application,
while the application instance is tied to the lifecycle of an Activity.

C) The Activity instance is tied to the lifecycle of the Activity,
while t he application instance is tied to the lifecycle of an application.

D) None of the above


Correct option is:

A) The Activity instance is tied to the lifecycle of an Activity,
while the application instance is tied to the lifecycle of the application.