Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.08 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.08 KB

Android Bound Services

A sample app for demonstration the use Android Bound Services.

Service:

Is an application component that can perform long-running operations in the background with no user interface.

bound_services

Yes, i said NO USER INTERFACE

These application have their own lifecycle independent of the activity or fragment that they were created in. So, services are unaffected by activity or fragment lifecycle events (onDestroy, onPause, and so on).

By default, services operate no the same thread that they're instantiated on.

You can use bound services when Client-Server interaction. The service acts as the server and someone component is a client. The client could be an activity a fragment a smart-watch or other application.

So, when you use consistent or frequent communication between some client and the service, in this case can be use Bound Services.

To learn more, click in the link above:

https://developer.android.com/guide/components/bound-services