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.

Sizin İçin Seçtik  At what stage of the lifecycle is of Android app?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  How do you start a thread service?

Leave a Reply

Your email address will not be published. Required fields are marked *