What is IntentService, and why was it deprecated in API 30 in favor of JobIntentService or WorkManager?
- A.IntentService was replaced because it cannot dispatch an explicit Intent, handling only implicit actions; WorkManager covers both cases and offers a single request type
- B.IntentService was deprecated because it always writes every received Intent into Logcat, and the extras are readable by a process holding READ_LOGS; WorkManager drops the logging, leaving the privacy problem behind on a modern target
- C.IntentService processes Intents on a background thread but cannot run in the foreground, making it incompatible with Android 8+ background execution limits; WorkManager handles scheduling and lifecycle properly
- D.IntentService is deprecated because it always shares its worker thread with the UI thread, and the contention causes ANRs; WorkManager keeps the work off the main looper
Why C is correct