App
Main Application class for the DoomScrolling app.
Overview
This class serves as the entry point for the DoomScrolling application. It initializes essential components, manages the application lifecycle, and provides global access to application-wide resources and services.
Key Responsibilities
- Initializes Firebase Analytics and AppMetrica for event tracking
- Manages application context and lifecycle
- Handles WebView configuration for multi-process scenarios
- Provides global access to application resources
Usage
To access the application context or analytics from anywhere in the app:
// Get application context
Context context = App.getContext();
// Log an analytics event
Bundle params = new Bundle();
params.putString("screen_name", "MainActivity");
App.mFirebaseAnalytics.logEvent("screen_view", params);
Content copied to clipboard
Lifecycle
The application follows the standard Android application lifecycle. Key methods include:
- onCreate - Initializes the application and its components
- onTerminate - Called when the application is terminating
- onLowMemory - Called when the system is running low on memory
Author
DoomScrolling Team
Since
1.0