A service is simply an android component which allows us to do resource intensive operation off the main thread . Basically an android app has two threads: Main thread and Worker Thread. If any networking operation is performed on main thread, it starts skipping frames and eventually crashes.
Why do we need service in Android?
A service is simply an android component which allows us to do resource intensive operation off the main thread . Basically an android app has two threads: Main thread and Worker Thread. If any networking operation is performed on main thread, it starts skipping frames and eventually crashes.