ActivityContext
ActivityContext is a class in Android development that provides access to contextual information about an activity, such as its lifecycle state, theme, and resources. Introduced in Android 11 (API level 30), it serves as a more efficient and modern alternative to the older ContextThemeWrapper, which was previously used to access theme-specific resources within an activity.
The primary purpose of ActivityContext is to encapsulate the context of an activity in a way that
ActivityContext is particularly useful in scenarios where an activity needs to pass its context to other components,
Developers can obtain an ActivityContext instance using the getActivityContext() method, which is available on the Activity