![]() And once the Service has started, it can run in background indefinitely unless and until it’s destroyed by some component Bound Service.Ī Service is called Bound when application component binds to it by calling bindService method. Or you can say, if you want to provide some music in the background then you can use Service for that.Ī Service is Started when an application component such as an activity starts it by calling a method called startService method. ![]() For example, a Service can be downloading something in the background or long running database operation in the background. ![]() So, a Service, you can say, it always run on the background and it has nothing to do with user interface. A Service is an application component that can perform long-running operation in the background and does not provide a use interface.
0 Comments
Leave a Reply. |