Interview answers verified by specialists.
Find interview questions and answers on this website:
There are two modes of operations that are necessary to run depending on the value returned by the startcommand(). The modes are as follows: - START_STICKY: this mode is used for the services that are explicitly started and stopped according to the need and the requirement of the user. - START_NOT_STICKY or START_REDELIEVER_INTENT: this service mode is used for services that are running only when the processing command sent to them. That means these run on the basis of the command that is passed to them by giving the instruction of execution. - Clients uses the Context.bindService() that is used to get the persistent connection for a service. To create a service that is not already running the command onCreate is used.