| Category | Entry Point | What Happens | AppComponentFactory Method |
|---|---|---|---|
| Activities | Normal launcher activity | User taps app icon | instantiateActivity |
| Deep link | URL launches your Activity | instantiateActivity |
|
| App shortcut | Long-press → quick action → Activity | instantiateActivity |
|
| Share sheet target | Share to Discord → ShareActivity | instantiateActivity |
|
| Notification tap | Tapping a push notification | instantiateActivity |
|
| Task restore | OS recreates Activity after kill | instantiateActivity |
|
| OEM external UI | Samsung/other OEM launches Activity | instantiateActivity |
| Services | Entry Point | What Happens | AppComponentFactory Method |
|---|---|---|---|
| FirebaseMessagingService | Push received → starts service | instantiateService |
|
| Foreground service | You start a foreground service | instantiateService |
|
| JobScheduler | JobService runs | instantiateService |
|
| WorkManager worker | Worker runs inside service | instantiateService |
|
| Bound service | App binds to your service | instantiateService |
| Broadcast Receivers | Entry Point | What Happens | AppComponentFactory Method |
|---|---|---|---|
| BOOT_COMPLETED | System boots → broadcast | instantiateReceiver |
|
| CONNECTIVITY_CHANGE | Network state changes | instantiateReceiver |
|
| AlarmManager | Alarm triggers your receiver | instantiateReceiver |
|
| Notification actions | Reply / Mark Read | instantiateReceiver |
|
| SMS_RECEIVED | SMS broadcast | instantiateReceiver |
|
| PACKAGE_ADDED / UPDATED | App installed/updated | instantiateReceiver |
|
| DOZE / IDLE / POWER events | System idle/power changes | instantiateReceiver |
| Headless / React Native | Entry Point | What Happens | AppComponentFactory Method |
|---|---|---|---|
| RN Headless JS Task | Triggered via Service or Receiver | instantiateService (or sometimes instantiateReceiver) |
| Special Components | Entry Point | What Happens | AppComponentFactory Method |
|---|---|---|---|
| ContentProvider | Runs before everything else | NONE | |
| BackupAgent | System backup/restore | instantiateService |
|
| TileService | User taps Quick Settings tile | instantiateService |
|
| RemoteViewsService | Home screen widget views | instantiateService |
|
| Instrumentation | Test process | NONE |