What is true about a Context?
i. Activity will have its own Context.
ii. Service will have its own Context.
iii. I can access activity's context directly from anonymous inner classes like button click listeners.
i & ii
i, ii, & iii
Both activity & service will have its own contexts.
Note : You can't access activity's context from an inner class directly, rather you have to use ActivityName.this to access its context.
Back To Top