With respect to Services on Android, you have two categories:

1) Started Services
2) and Bound Services

This video is focused on bound services.

I think the best way to think of a bound service is to compare it with a server. When you start a service with the intention to bind something to it, you essentially have the intention to start a server, and bind to it with some kind of client. At it’s core, you’re defining a client-server interaction. The service acts as the server, and an activity acts as the client.

Note that this demo is done using the architectural design pattern known as “Model View View-Model” (MVVM).

➤Blog post on Bound Services:

➤Learn to Code Like me:

➤My Instagram:

➤Source Code:


Nguồn:https://u-os.org/

Xem Thêm Bài Viết Khác:https://u-os.org/cong-nghe

Author

Write A Comment