0 votes
in JQuery by
What all types of Context are present in Andriod?

1 Answer

0 votes
by

Mainly two types of context are 

  • Application Context: It is an instance that is the singleton and can be accessed in activity via getApplicationContext(). This context is tied to the lifecycle of an application. The application context can be used where you need a context whose lifecycle is separate from the current context or when you are passing a context beyond the scope of activity.

  • Activity Context: This context is tied to the lifecycle of an activity. The activity context should be used when you are passing the context in the scope of an activity or you need the context whose lifecycle is attached to the current context.

Related questions

0 votes
asked Jun 22, 2020 in JQuery by DavidAnderson
0 votes
asked Sep 21, 2020 in JQuery by JackTerrance
...