Answers for "Service vs Intent Service"

0

Service vs Intent Service

The Service can be used in tasks with no UI, but shouldn't be too long. If you need to perform long tasks, you must use threads within Service.

The IntentService can be used in long tasks usually with no communication to Main Thread. If communication is required, can use Main Thread handler or broadcast intents. Another case of use is when callbacks are needed (Intent triggered tasks
Posted by: Guest on March-27-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language